Exemplo n.º 1
0
 protected void Unnamed3_Click(object sender, EventArgs e)
 {
     Data.LoginControl login = new Data.LoginControl();
     #region try-catch
     try
     {
         if (login.LoginValidate(login_name.Text.Trim(), login_password.Text.Trim(), ref kullanici, ref err))
         {
             Session.Add("s1", kullanici);
             Response.Redirect(Request.RawUrl);
         }
     }
     catch (Exception ex)
     {
         err = ex.Message;
         throw;
     }
     #endregion
 }
Exemplo n.º 2
0
 protected void Unnamed3_Click(object sender, EventArgs e)
 {
     Data.LoginControl login = new Data.LoginControl();
     #region try-catch
     try
     {
         if (login.LoginValidate(login_name.Text.Trim(), login_password.Text.Trim(), ref kullanici, ref err))
         {
             Session.Add("s1", kullanici);
             Response.Redirect(Request.RawUrl);
         }
     }
     catch (Exception ex)
     {
         err = ex.Message;
         throw;
     }
     #endregion
 }