locked
Login button not firing after deployment in IIS 7.5 RRS feed

  • Question

  • User-640404880 posted

    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.

    Thursday, January 31, 2013 4:46 PM

Answers

  • User-640404880 posted

    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!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, February 3, 2013 2:08 AM

All replies

  • User-1315512054 posted

    Hello,

    It seems OK for me. What about for testing to show the lblMessage.Visible = true;  in both cases?

    Regards

    Friday, February 1, 2013 3:51 AM
  • User-640404880 posted

    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!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, February 3, 2013 2:08 AM