AspNetAtoms.com daily updates on ASP.NET Tutorials, Articles, Authors and more. Subscribe to our newsletter and receive updates on ASP.NET resources on the Internet.

Categories

Recent Posts

Renaming a file using ASP.NET 2.0 and VB .NET

Monday, June 30 2008

This tutorial will show you how to rename a file on the disk using ASP.NET 2.0 and VB.NET The .NET Framework offers a number of types that makes accessing resources on filesystems easy to use. To rename a simple file on the disk, we will need to first import the System.IO namespace. The System.IO namespace contains the File.Delete() method and FileInfo type that we will use to perform our delete with...

How to export GridView to txt file using C#

Monday, June 30 2008

This tutorial will show you how to export GridView to txt using ASP.NET 2.0 and C#...

Uploading and Deleting Files via Form in ASP.NET and VB

Monday, June 30 2008

This tutorial will show how we can upload files to a web server and also use a GridView control to delete files as well. VB version. Quite often, we want to allow uploading of files to a web server, which enables new content to be loaded much quicker & easier than using FTP. ASP.NET makes this easy for us to do, but what happens when we want to delete files from a web server, too? Well ASP.NET, of course, has an answer for this too. We can use a GridView to display files in a certain directory, and allow a user to delete these files...

Check File Existence in ASP.NET and VB

Monday, June 30 2008

This tutorials shows how we can verify if a file exists or not before executing code relating to said file. VB version. Checking if a file exists before executing certain lines of codes can be very useful. It can prevent error messages caused by trying to manipulate a file that isn't there, for example. Using System.IO, we can check to see if a file exists in a certain directory with ease...

The Dark Side of File Uploads : Milan Negovan

Monday, June 30 2008

I saw a December MSDN article, entitled Uploading Files in ASP.NET 2.0, and wanted to offer my comments on some gotchas with uploading files. I’ve spent countless hours and tried numerous hacks to tame file uploading and have enough bruses from hitting my head against the wall (figuratively speaking). ASP.NET 1.x shipped with the HtmlInputFile control, while 2.0 has a brand new, FileUpload control, although its HTML counterpart is still there...