WEB CONFIG FILE
<?xml version="1.0"?>
<configuration>
<system.web>
<httpRuntime maxRequestLength="1048576" executionTimeout="999999"/>
<customErrors mode="Off"></customErrors>
<compilation debug="true" targetFramework="4.0"/>
</system.web>
</configuration>
Folder Code
protected void Button1_Click(object sender, EventArgs e)
{
//file upload
FileUpload1.SaveAs(Server.MapPath(@"~/nsadmin/") + "//news//" + FileUpload1.FileName);
Label1.Text = "File upload successfully please click save button to save record";
}
No comments:
Post a Comment