| Author: sivapriya 28 Aug 2008 | Member Level: Gold | Rating: Points: 3 |
i think u get only usrname & password in reader. there is no value Enter correct name and password in the reader so try this TextBox3.Text = "Enter correct name and password"
|
| Author: Sabu C Alex 29 Aug 2008 | Member Level: Gold | Rating: Points: 5 |
If reader.Read() Then textbox1.Text = reader("employeename") textbox2.Text = reader("employeepassword") Response.Redirect("Calculation.aspx") Else TextBox3.Text = reader("Enter correct name and password") End If
Here in reader you can pass either field index or name of fieldname you cannot pass value like reader("Enter correct name and password")
i think you have to display message like this
TextBox3.Text = "Enter correct name and password"
|