Friday, July 31, 2009

How to make provision for file upload and download in C#.NET? file should reside in a remote system.?

I need to know how to give the URL of the system that the file is going to reside? I am developing a site where it should upload the file from the users and store in the space that I have already bought from the domain service provider. Help me out wit the code..

How to make provision for file upload and download in C#.NET? file should reside in a remote system.?
http://msdn2.microsoft.com/en-us/system....
Reply:You know in web we don' have actual path or drives, we have just virtual.


So we can access the file or folder via Server object of .net.


For example:For uploading a file for profile of someone we should create a folder for him and then upload file via


"Server.MapPath(serverPath) ".





You should set the path of server via Server.MapPath() .


No comments:

Post a Comment