Subhash Sharma

Subhash Sharma
Subhash Sharma

This is Subhash Sharma(Software Engineer) Blog

Welcome to this blog and find every solution.............

Search This Blog

Software Engineer(Subhash Sharma)

Software Engineer(Subhash Sharma)
Software Engineer

Thursday, March 18, 2010

File Upload in Asp.net c#

//Take one file upload control and one button for save the file..

//button click

if(fileupload1.hasfile)
{
fileupload1.saveas(server.mappath(fileupload1.filename));
label1.text="file uploaded :" + fileupload1.filename;
}
else
{
label1.text="No file Upload";
}

No comments:

Post a Comment