Web Forms :: Create Compressed RAR Zip Files?
Sep 20, 2015is there any library to rar&unrar files in C#?
if there isn't, any compression libraries for c#?
is there any library to rar&unrar files in C#?
if there isn't, any compression libraries for c#?
I have an HttpModule which is used to dynamically compress content from an ASP.NET (MVC3) web application. The approach is very similar to the CompressionModule in this article (where the module applies a GZip filter to the HttpResponse and sets the correct Content-encoding header).For one reason and another, this needs to run in classic mode, not integrated pipeline mode.
The problem I've got, is that on some servers that have IIS compression enabled, IIS compresses the content and then my module compresses that. The upshot is that I get content compressed twice, with an encoding:
Content-encoding: gzip,gzip
one from IIS, and one from this line in my code:
httpResponse.AppendHeader("Content-encoding", "gzip");
Does anyone know a way, in classic mode, that I can check to see if the content is already compressed, or if compression is enabled on the server, in order to bypass my own compression?In pipeline mode, this check is as simple as
if (httpResponse.Headers["Content-encoding"]!= null)
{
return;
}
i.e. check if anything has already set a content-encoding and if so, do nothing.However, I'm stumped in classic mode. Unfortunately, accessing HttpResponse.Headers is not allowed in classic mode, so I can't do my barrier check.
For an ASP.NET 4.0 / IIS7 web app, I would like to support compressed HTTP requests. Basically, I would like to support clients that would add Content-Encoding: gzip in the request headers, and compress the body accordingly.
Does anyone known how I achieve such a behavior?
I've seen a number of options for adding GZIP/DEFLATE compression to ASP.Net MVC output, but they all seem to apply the compression on-the-fly.. thus do not take advange of caching the compressed content.
Any solutions for enabling caching of the compressed page output? Preferably in the code, so that the MVC code can check if the page has changed, and ship out the precompressed cached content if not.
This question really could apply to regular asp.net as well.
How to create MSI Files or setup files programmatically using MSBuild in VS 2008
View 1 RepliesI'm making a asp.net web project using visual web developer 2010. I want to use ajax control toolkit so I have dowloaded the compressed folder and I added a tab in my project with all the ajax control toolkit. The problem is when I try to run the project it gives me the following message: " It's impossible to find the file 'd:hgactServerAjaxControlToolkitExtenderBaseExtenderControlBase.cs'.
After an Internet researcj , I supposed that this error is caused by the fact that I created a simple web project, while I had to create a ajax web toolkit project. The question is:how can I create it?? In the home page of visual web developer 2010 the model "ajax control toolkit web site" doesn't appair in the installed models!! How can I import it, or can I solve this problem in general?
Is it true that it has been originated that the fact I created a simple web project instead of a ajax control toolkit project?
I'm running ASP.NET on an IIS6 server. Right now the server is set up to compress dynamically generated content, mainly to reduce the page size of ASPX files that are being retrieved.
Once of the ASPX files has the following bit of code, used to fetch a file from the database and send it to the user:
Response.Clear();
Response.Buffer = true;
Response.ContentType = Document.MimeType;[code]....
The download itself works perfectly. However, the person downloading the file doesn't get a progress bar, which is incredibly annoying.
From what research I've been doing, it seems that when IIS sets the transfer-encoding to chunked when compressing dynamic content, which removes the content-length header as it violates the HTTP1.1 standard when doing that.
What's the best way to get around this without turning dynamic compression off at the server level? Is there a way through ASP.NET to programatically turn off compression for this response? Is there a better way to go about doing things?
I need to create temp file on the clint side So, i read that files can be created on the folder of internet temp file. how I can do that?how I can get the path of the temp folder?I need VB code
View 10 RepliesI want to create a log file and it should have information about the application like error occured at the line. If it is success then should log success message.
View 6 Repliesin my project i would like to save pdf files in database, how to save pdf files in database ? along with that i would like to create create a search page to search for pdf files with PDF file names , how to accoplish these things
View 3 RepliesWe are currently updating our policy page on our intranet. Currently the page is written in ASP and connects to an Excel spreadsheet that serves as an index, which contains policy name and number. We also have a directory that contains all of the policiesnamed the policy number. The control that is currently being used will get all of the policies listed in the index and create links for them. We do not have to manually create the hundreds of links we just update the index. Does anyone have an idea of a control or a way I can accomplish this in asp.net?
View 1 RepliesBasically I need multiple code-behind files each containing different functions for a page. Different classes do not do this because they are not connected to the page so their methods require parameters I want direct control of the page without the need for parameters.
I can only seem to crete one code-behind file and I need many. I've tried putting the aspx page in the App_Code folder but this causes an error.
I want to create a folder (titled their userid) for each user for Images they upload. I also want to name their files as their username + 1 or 2 or 3... whatever number of images they have.
Here is what I've done:
[Code]....
How can I create Thumbnail Image For Pdf files uploaded by user .. The Thumbnail contains first Page of Pdf only.. Is it Possible through ItextSharp ?
View 1 Repliesi want to create the sperate gridview where a show most downloadable file and this girdview i show in my main naats aspx page.......can any 1 tell me how it is possible to do that...visit this website for more understanding
View 1 RepliesI've had a crack at creating a windows desktop application to convert a csv into an xml file, and for a beginner I think I did a pretty good job. I tried to use LINQ which building the structure, but noticed that it only worked on complete tags, it didn't seem to let me specify part of a document. So instead, I used LINQ on complete tags, but where I had to leave it open to perform some loops and if statements, I had to create a string that looked like xml, not really ideal as I had to manually do all of the indentations and open and close speech marks all over the place. I should point out that I'm not trying to create a static xml file. If the structure is something like the following:
<root>
<firstTag></firstTag>
<secondTag></secondTag>
<thirdTag>
<forthTag></forthTag>
<forthTag></forthTag>
<forthTag></forthTag>
</thirdTag>
</root>
I don't know in advance how many "forthTag"s will appear between the "thirdTag"s, so I know that from "root" to "thirdTag" is static, but beyond that, I need to run a lot of code to see how many times I should repeat the forthTag. I'm not sure if I've put forward my question very well, but in summary, I want to create xml using LINQ but without being forced to close my tags. I've got the program working perfectly well, but I'd like to learn to do it the most efficient way possible.
I need to create .pdf , .excel , .doc , .csv files in MVC.
View 1 RepliesI followed the instructions from the release notes, except for one thing. I did not include the following in my web.config. Thas the the "bindingRedirect oldversion 1.0.0.0 to newVersion 2.0.0.0". I got an error message to the effect that I could not have 2 configuration sections in the web.config. I was told that as long as I had the system.web.mvc 2.0.0.0 in my BIN and, I was refereincing this same version dll that I should be fine? I am wondering if I should just create a new MVC2 project and copy my MVC1 relevent files into this MVC2 project, not sure.
View 1 RepliesI created a HttpHandler for downloading files from the server. It seems it is not handling anything...I put a breakpoint in the ProcessRequest, it never goes there.
public class DownloadHandler : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
//download stuff and break point
}
}
It never stops there, as mentioned. I also registered it in the web.config.
<add verb="*" path="????" type="DownloadHandler" />
I am not sure about the path part of that entry. What do I have to enter there? I am downloading txt files, but the URL does not contain the filename, I somehow have to pass it to the handler. How would I do this? Session maybe?
I am working in asp.net application and need to download an installer package from the webserver to the client machine.My installer would contain..
1.Drivers(i.e exe file) for one hardware machine.[IT shouuld automatically run and install in the program file]
2.I have to register MSCOMM32.ocx.Its entry would go into the registry.(like manually we do Regsvr32 path of OCX to register it)
And, I want that above both should done within a single installer package.
But,how to do these things within .Net applications.
I am trying to create a ad-hoc reporting system and plan to create the report rdl programatically using a wizard where user selects the attributes of the report.
point me to any documentation, sample application that I can refer to on how to create the rdl file programatically?
I want to Use MSBUILD to create MSI Files or setup. Can I do it programetically.
View 1 RepliesI am new to Visual Studio 2010 and ASP.Net, and when I first connected my SQL Server to Visual Studio it created huge files full of my SQL classes (maybe this was LINQ classes), and I accidently deleted/corrupted those files, and now I want it to create those classes again. Can someone tell me how I can do that?
View 5 Repliesmy subprojects creates serveral web.config files? I have solution that consists of 10 projects and I want everyone to compalie but the one in the top root. Now my problem is that my subprojects are all located inside folders in the root and my subprojects generates each a web.config. Thhis doesnät work very good so what should I reconfigure would you say?
View 2 RepliesIn ASP.Net two of the possible ways to make the zip files are
Sharp Zip Library
Dot Net Zip Library
How can i use any of these in Classic ASP to make the zip files ? And which one will be better ?