Sunday, May 22, 2011

simple File Upload

string filename = FileUpload1.FileName;
        FileUpload1.SaveAs(Server.MapPath("~/css/") + filename);


FileUpload1 is the  ID of file upload control.

~/css   is the folder to which we are up

No comments:

Post a Comment