Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 03, 2013 06:08 AM by the_transltr
Jan 31, 2013 08:46 PM|LINK
I have a login page with textbox for username and for password and ofcourse a SignIn button.
protected void btnSignIn_Click(object sender, EventArgs e)
StoredProcedure sp = new StoredProcedure();
DataTable datatable = sp.Login(txtUsername.Text, txtPassword.Text);
if (datatable.Rows.Count != 0)
Session["pkUser"] = datatable.Rows["pkUser"].ToString();
lblMessage.Visible = true;
I deployed the page Login.aspx and Administrator.aspx on Windows server 2008 IIS 7.5. Login.aspx is inside Account folder and Administrator.aspx is inside Homepages.
I tried testing it on locally but the when i click the button nothing happens. I dont know what did i miss. Please help.
Feb 01, 2013 07:51 AM|LINK
It seems OK for me. What about for testing to show the lblMessage.Visible
= true; in both cases?
Feb 03, 2013 06:08 AM|LINK
I tried to pop up message on button click and it worked. I think this is not an control issue but a ms sql connection issue. Thanks!