CheckUser() публичный Метод

public CheckUser ( int teamid, string username, string password ) : bool
teamid int
username string
password string
Результат bool
Пример #1
0
        protected void btnLogin_Click(object sender, EventArgs e)
        {
            bool loginStatus = false;

            int teamid=Convert.ToInt32(txtteamid.Text);
            string username = txtusername.Text.ToString();
            string password = txtpswd.Text.ToString();

               UserClass objlogin = new UserClass();

            loginStatus = objlogin.CheckUser(teamid,username,password);

            if (loginStatus)
            {
                Response.Redirect("Home.aspx");
            }
            else
            {
                Response.Redirect("login.aspx");
            }
        }