protected void Page_Load(object sender, EventArgs e)
 {
     if (!checkCookie())
         Response.Redirect("Login.aspx");
     String sellerId = null;
     try
     {
         sellerId = Request.QueryString["sellerId"].ToString();
         EncryptDecrypt obj = new EncryptDecrypt();
         sellerId = obj.Decrypt(HttpUtility.UrlDecode(sellerId));
     }
     catch(System.NullReferenceException exc)
     {
         String sellerUsername = Request.Cookies["Car-Trading"]["Username"].ToString();
         DatabaseHandler x = new DatabaseHandler();
         DataSet ds1 = x.GetSellerId(sellerUsername);
         sellerId = ds1.Tables[0].Rows[0]["SELLER_ID"].ToString();
     }
     DatabaseHandler obj1 = new DatabaseHandler();
     DataSet ds = new DataSet();
     ds = obj1.GetSellerHomeInfo(sellerId);
     Label1.Text = ds.Tables[0].Rows[0]["SELLER_NAME"].ToString();
     Label2.Text = ds.Tables[0].Rows[0]["SELLER_COUNTRY"].ToString();
     Label3.Text = ds.Tables[0].Rows[0]["SELLER_CITY"].ToString();
     Label4.Text = ds.Tables[0].Rows[0]["SELLER_STREET"].ToString();
     Label5.Text = ds.Tables[0].Rows[0]["SELLER_PHONE_NUMBER"].ToString();
     Label6.Text = ds.Tables[0].Rows[0]["SELLER_EMAIL_ID"].ToString();
     Label7.Text = ds.Tables[0].Rows[0]["SELLER_BANK"].ToString();
     Label8.Text = ds.Tables[0].Rows[0]["SELLER_BANK_ACCOUNT_NUMBER"].ToString();
     Image1.ImageUrl = "~\\Seller ID\\" + Path.GetFileName(ds.Tables[0].Rows[0]["SELLER_ID_PROOF"].ToString());
     Image1.Width = 100;
     Image1.Height = 100;
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     this.UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None;
     if (!checkCookie())
         Response.Redirect("Login.aspx");
     String sellerId = Request.QueryString["sellerId"].ToString();
     EncryptDecrypt obj = new EncryptDecrypt();
     sellerId = obj.Decrypt(HttpUtility.UrlDecode(sellerId));
     DatabaseHandler obj1 = new DatabaseHandler();
     DataSet ds = new DataSet();
     ds = obj1.GetSellerHomeInfo(sellerId);
     TextBox1.Text = ds.Tables[0].Rows[0]["SELLER_NAME"].ToString();
     TextBox2.Text = ds.Tables[0].Rows[0]["SELLER_COUNTRY"].ToString();
     TextBox3.Text = ds.Tables[0].Rows[0]["SELLER_CITY"].ToString();
     TextBox4.Text = ds.Tables[0].Rows[0]["SELLER_STREET"].ToString();
     TextBox5.Text = ds.Tables[0].Rows[0]["SELLER_PHONE_NUMBER"].ToString();
     TextBox6.Text = ds.Tables[0].Rows[0]["SELLER_EMAIL_ID"].ToString();
     TextBox7.Text = ds.Tables[0].Rows[0]["SELLER_BANK"].ToString();
     TextBox8.Text = ds.Tables[0].Rows[0]["SELLER_BANK_ACCOUNT_NUMBER"].ToString();
     TextBox9.Attributes.Add("value", ds.Tables[0].Rows[0]["SELLER_PASSWORD"].ToString());
     Image1.ImageUrl = "~\\Seller ID\\" + Path.GetFileName(ds.Tables[0].Rows[0]["SELLER_ID_PROOF"].ToString());
     Image1.Width = 100;
     Image1.Height = 100;
 }