Saturday, July 2, 2011

How to Use File Upload Control in asp.net



if (FileUpload1.HasFile)
        {

            FileUpload1.SaveAs("c:\\yash\\" + FileUpload1.PostedFile.FileName);
            Response.Write("<script> alert('file Uploaded Sucessfully') </script>");

        }

No comments:

Post a Comment