944,216 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 407
  • ASP.NET RSS
Oct 16th, 2009
0

User control problem

Expand Post »
ASP.NET Syntax (Toggle Plain Text)
  1. protected void btnLogin_Click(object sender, EventArgs e)
  2. {
  3. try
  4. {
  5. SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
  6. SqlCommand cmd = new SqlCommand("SELECT * FROM UserLogin", conn);
  7. conn.Open();
  8. SqlDataReader dr = cmd.ExecuteReader();
  9. while (dr.Read())
  10. {
  11. if (txtUserName.Text == dr[0].ToString())
  12. {
  13. if (txtPassword.Text == dr[1].ToString())
  14. {
  15. Response.Redirect("FrmLogin.aspx");
  16. }
  17. else
  18. {
  19. lblError.Text = "UserName & Password do not match";
  20. }
  21. }
  22. else
  23. {
  24. lblError.Text = "UserName & Password do not match";
  25. }
  26. }
  27. }
  28.  
  29. catch (Exception ex)
  30. {
  31. Response.Write(ex.Message.ToString());
  32. }
  33. }
I call user control in Frmlogin.aspx page. First time i run the form,it runs.Now when i runs the Frmlogin.aspx page error is there
Disassembly cannot be displayed. The expression has not yet been translated to native machine code.


Wats dis error means?Can u tell me?
Reputation Points: 0
Solved Threads: 8
Posting Whiz
sonia sardana is offline Offline
326 posts
since Mar 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: GridView in ASP.NET
Next Thread in ASP.NET Forum Timeline: TaxID validation





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC