protected void loginButton_Click(object sender, EventArgs e) { string asuID = ""; if (myConnector.LogIn(txtusername.Text, txtpassword.Text, ref asuID)) { //store credentials in session Session["Username"] = txtusername.Text; Session["Password"] = txtpassword.Text; Session["AsuID"] = asuID; //send to login Response.Redirect("Default.aspx"); } else { //to do: add error messages for invalid credentials } }