i have created a login page with text box for user id and password. the textbox for password is set to 'Password' text mode. iam comparing the values entered by the user in the text boxes with values in the database table. iam able to compare the user id textbox with database value with out any prob but not able to do so for the password field. what might be wrong? does the text mode property of the textbox has anything to do with this?
please let me know
thanksPlease explain ("..but not able to do so for the password field"), in a little more detail what IS or IS NOT happening.
you should be able to a check very easily with the text in a text box with the text mode:password
i have two text boxes in my page. txt1 -- userid and txt2--passwd
i enter userid that is already there in the table in txt1 and enter passwd that is already there in table in txt2. i have written an event handler for the button to check if the values of txt1 and txt2 are equal to the values in the database table(say users is the table that has two columns column-0 for userid and column-1 for passwd).
using datareader to get the values from database and reading data from datareader using datareader.getstring(0).tostring() -- for userid and
datareader.getstring(1).tostring() -- for passwd
code works fine for user id(i.e., if i enter user1 in txt1 and if there is a user with user1 as user id it works) but when i enter a passwd say pwd1 in txt2 and there is a user in the table with passwd pwd1 even though i enter the same exact values for passwd txtbox iam not able to enter that loop(where iam checking for passwds)
0 comments:
Post a Comment