protected void btn_ok_Click(object sender, EventArgs e)
    {
        string u_name_session    = Session["username"].ToString();
        User_Property_tbl_user u = new User_Property_tbl_user();

        u.address   = txt_address.Text;
        u.shop_name = txt_shop_name.Text;
        u.user_name = txt_user_name.Text;
        u.photo     = "";

        int i = Update_Logic.update_user_data(u_name_session, u.user_name, u.address, u.shop_name, u.photo);

        if (i == 1)
        {
            ModalPopupExtender1.Show();
            modal_msg_lbl.Text      = "Update Successfully";
            modal_msg_lbl.ForeColor = System.Drawing.Color.Green;
            txt_user_name.Enabled   = false;
            txt_shop_name.Enabled   = false;
            txt_address.Enabled     = false;
        }
        else
        {
            modal_msg_lbl.Text = "Updation Failed";
            ModalPopupExtender1.Show();
            modal_msg_lbl.ForeColor = System.Drawing.Color.Red;
        }
    }
    protected void btn_ok_Click(object sender, EventArgs e)
    {
        if (txt_current_password.Text == temp_p_db)
        {
            if (txt_new_password.Text == txt_confirm_password.Text)
            {
                User_Property_tbl_user u = new User_Property_tbl_user();
                u.user_name = Session["username"].ToString();
                u.password  = txt_new_password.Text;

                int i = Update_Logic.update_password(u.user_name, u.password);

                if (i == 1)
                {
                    modal_lbl_msg.Text      = "Successfully Changed";
                    modal_lbl_msg.ForeColor = System.Drawing.Color.Green;
                    ModalPopupExtender1.Show();
                }
                else
                {
                    modal_lbl_msg.Text      = "Error";
                    modal_lbl_msg.ForeColor = System.Drawing.Color.Red;
                    ModalPopupExtender1.Show();
                }
            }
            else
            {
                modal_lbl_msg.Text      = "New Password and Confirm password should be same";
                modal_lbl_msg.ForeColor = System.Drawing.Color.Red;
                ModalPopupExtender1.Show();
            }
        }

        else
        {
            modal_lbl_msg.Text      = "Password Does not match";
            modal_lbl_msg.ForeColor = System.Drawing.Color.Red;
            ModalPopupExtender1.Show();
        }
    }