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.
the_transltr
Member
3 Points
19 Posts
Login button not firing after deployment in IIS 7.5
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[0]["pkUser"].ToString(); Response.Redirect("~/HomePages/Administrator.aspx"); } else { 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.
HostingASPNe...
All-Star
15882 Points
2977 Posts
Re: Login button not firing after deployment in IIS 7.5
Feb 01, 2013 07:51 AM|LINK
Hello,
It seems OK for me. What about for testing to show the lblMessage.Visible = true; in both cases?
Regards
Free ASP.NET Examples and source code.
the_transltr
Member
3 Points
19 Posts
Re: Login button not firing after deployment in IIS 7.5
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!