| | |
User control problem
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2008
Posts: 324
Reputation:
Solved Threads: 7
ASP.NET Syntax (Toggle Plain Text)
protected void btnLogin_Click(object sender, EventArgs e) { try { SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); SqlCommand cmd = new SqlCommand("SELECT * FROM UserLogin", conn); conn.Open(); SqlDataReader dr = cmd.ExecuteReader(); while (dr.Read()) { if (txtUserName.Text == dr[0].ToString()) { if (txtPassword.Text == dr[1].ToString()) { Response.Redirect("FrmLogin.aspx"); } else { lblError.Text = "UserName & Password do not match"; } } else { lblError.Text = "UserName & Password do not match"; } } } catch (Exception ex) { Response.Write(ex.Message.ToString()); } }
Disassembly cannot be displayed. The expression has not yet been translated to native machine code.
Wats dis error means?Can u tell me?
![]() |
Similar Threads
- Custom user control key events problem (C#)
- problem rendereing special chars in user control (C#)
- How to apply themes to the user control? (ASP.NET)
- ComboBox Text Field cleared in Custom User Control When Form Show is called (VB.NET)
- Wizard Control with User Control (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: GridView in ASP.NET
- Next Thread: TaxID validation
Views: 211 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 3.5 ajax appliances application asp asp.net beginner box browser businesslogiclayer button c# cac checkbox child class complex contenttype control countryselector database datagrid datagridview datalist deployment development dgv dialog dropdownmenu dynamic dynamically edit editing embeddingactivexcontrol feedback fileuploader fill findcontrol flash flv folder form gridview gudi identity iis image javascript languages list maps menu mobile mssql nameisnotdeclared novell opera order parent problem profile radio redirect refer registration relationaldatabases reportemail response.redirect richtextbox rows search security select serializesmo.table services sessionvariables silverlight smoobjects software sql sql-server ssl tracking treeview validatedate validation vb vb.net vista visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming wizard xsl





