protected void Page_Load(object sender, EventArgs e) { if (this.Session["FileUpload1"] == null && FileUpload1.HasFile) { this.Session["FileUpload1"] = FileUpload1; } else if (this.Session["FileUpload1"] != null && FileUpload1.HasFile) { FileUpload1 = (FileUpload)this.Session["FileUpload1"]; } else if (!IsPostBack) { Session["CheckRefresh"] = Server.UrlDecode(System.DateTime.Now.ToString()); if (this.Session["FileUpload1"] == null && FileUpload1.HasFile) { this.Session["FileUpload1"] = FileUpload1; } else if (this.Session["FileUpload1"] != null && FileUpload1.HasFile) { FileUpload1 = (FileUpload)this.Session["FileUpload1"]; } else if (FileUpload1.HasFile) { this.Session["FileUpload1"] = FileUpload1; } Bindstate(); Bindclass(); } else if (FileUpload1.HasFile) { this.Session["FileUpload1"] = FileUpload1; } else { } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)