protected void Button2_Click(object sender, EventArgs e) { if (!checkCookie()) Response.Redirect("Login.aspx"); String sellerName = TextBox1.Text; String sellerCountry = TextBox2.Text; String sellerCity = TextBox3.Text; String sellerStreet = TextBox4.Text; String sellerPhone = TextBox5.Text; String sellerEmail = TextBox6.Text; String sellerBankName = TextBox7.Text; String sellerBankAccountNum = TextBox8.Text; String sellerPassword = TextBox9.Text; String sellerIdProof = FileUpload1.PostedFile.FileName; String IdProofFolder = HttpContext.Current.Server.MapPath("~/Seller ID"); String IdProofTarget = Path.Combine(IdProofFolder, sellerIdProof); FileUpload1.SaveAs(IdProofTarget); String sellerId = Request.QueryString["sellerId"].ToString(); EncryptDecrypt obj = new EncryptDecrypt(); sellerId = obj.Decrypt(HttpUtility.UrlDecode(sellerId)); DatabaseHandler obj1 = new DatabaseHandler(); obj1.UpdateSellerInfo(sellerName, sellerCountry, sellerCity, sellerStreet, sellerPhone, sellerEmail, sellerIdProof, sellerBankName, sellerPhone, sellerPassword, sellerId); Response.Redirect("SellerHome.aspx?sellerId=" + Request.QueryString["sellerId"].ToString()); }