Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (db.chk_data("select 1 from tbl_hoteldetails") > 0)
         {
             Response.Redirect("default.aspx");
         }
     }
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (db.chk_data("select 1 from tbl_hoteldetails") <= 0)
         {
             Response.Redirect("set-up.aspx");
         }
         if (Request.Cookies["OTA_emailid"] != null && Request.Cookies["QTA_password"] != null)
         {
             txt_emailid.Text            = Request.Cookies["OTA_emailid"].Value;
             txt_pwd.Attributes["value"] = Request.Cookies["QTA_password"].Value;
             chk_remember.Checked        = true;
         }
     }
 }