|
|
|
|
|
Total Hits: 5 | Today: 0
|
Author: darick_c
|
Rating:
|
|

It is difficult to find a decent upload control that handles large files, shows a progress bar, and still works in a medium-trust hosting environment. The problem with these controls is that medium-trust does not allow Reflection. But this does not mean that we are out of luck. One of the problems these controls strive to overcome is the server running out of memory when large files are uploaded by streaming the uploaded file to disk. But the HttpPostedFile class description states that "By defa...
|
|
|
|
Total Hits: 4 | Today: 0
|
Author: mohsen ahmadian
|
Rating:
|
|

In the web application some times you need to manage your files or allow your users to manage their files. In this time you need a file manager and creating a powerful solution is time consuming, but you don't have enough time. This was the story of my work when I needed it. I think if I write a powerful file manager that is simple to use and portable, did my best....
|
|
|
|
Total Hits: 18 | Today: 0
|
Author: Jeffrey Richter
|
Rating:
|
|

If multiple threads concurrently execute code that writes to or modifies a resource, then obviously the resource must be protected with a thread synchronization lock to ensure that the resource doesn't get corrupted. However, it is common to have a resource that is occasionally written to but frequently read from. If multiple threads are concurrently reading a resource, using a mutual exclusive lock hurts performance significantly because only one thread at a time is allowed to read from the res...
|
|
|
|
Total Hits: 56 | Today: 0
|
Author: Raja
|
Rating:
|
|

In this tutorials, I am going to explain how to read appSettings and connectionStrings values from the web.config file. In the code behind file, you will have to use System.Configuration namespace. So add it at the top of the .cs file like...
|
|
|
|
Total Hits: 6 | Today: 0
|
Author: Sbanerjee
|
Rating:
|
|

User can upload images of any arbitrary size. This is not good for either network traffic or database size, and raises the possibility of a nasty denial of service attack. So, the next step is to limit the uploaded file size to a reasonable value. The customer chose 128K as their maximum image size. Your first thought might be to check the ContentLength property of the uploaded file to see if it's within the expected size, and to bail out of the procedure if it's too large. Unfortunately, this i...
|
|
|
|
Total Hits: 8 | Today: 0
|
Author: anas
|
Rating:
|
|

This is how to to list the files in a specific directory and allow the user to download the files.......
|
|
|
|
Total Hits: 38 | Today: 0
|
Author: SumanBiswas
|
Rating:
|
|

It’s my first article for Asp.net. Generally I write code in network field with C#.Net but from few days I’m working in Web development and facing various problem. Also that article has influenced me from a problem in my project. And after getting solution of it I’m writing that article. You can see my blog at http://socketprogramming.blogspot.com....
|
|
|
|
Total Hits: 8 | Today: 0
|
Author: Konstantin Vasserman
|
Rating:
|
|

Back in the ASP world, uploading files via a web page was a tricky problem. The problem was that due to the encryption type of the form used to submit the file from the client's browser, receiving such files on the server side was a complex task. Data had to be retrieved as a safe byte array and decrypted before it could be used. Most of the people resorted to 3rd party DLLs. A few wrote their own DLLs and some even wrote purely ASP solutions to this problem using VBScript. Fortunately for us, t...
|
|
|
|
Total Hits: 7 | Today: 0
|
Author: Jake Morgan
|
Rating:
|
|

The ZipEntryHandler enumerates and serves files out of static zip files deployed in your web space. The handler is implemented as a simple ASP.NET IHttpHandler deployed with a code file in the App_Code directory on your website and configured with a line in the web.config file. The handler is very useful for several purposes: * Serving otherwise prohibited files - Code files with extensions that have special meaning to the web application ("cs", "vb", "aspx") can be served statically. ...
|
|
|
|
Total Hits: 10 | Today: 0
|
Author: Bean Software
|
Rating:
|
|

Let suppose, you have to enable your website users to upload their pictures. Or suppose you have to place functionality of uploading product images along with the product description. In this article, we will explain how you can provide such functionalities. We may need to manipulate files and directories on our web server in different ways. For example, applications need to create a new file, delete an existing file, modify the contents of an existing file, and check whether a file with given n...
|
|
|
|
Total Hits: 23 | Today: 0
|
Author: Bean Software
|
Rating:
|
|

ASP.NET provides a simple mechanism to upload image files to a database, like SQL Server. The images can be stored in a database table attribute that is of image data-type. You can use the following SQL statement to create a table that can store image files:...
|
|
|
|
Total Hits: 71 | Today: 0
|
Author: Bean Software
|
Rating:
|
|

In this article I am going to look at how to upload a file to the web server and compress it using the compression methods provided in .Net. I will use the open source compression method to compress to a .gz file. The method is available in System.IO.Compression....
|
|
|
|
|
|