ashutosh9910 Posted October 17, 2005 Posted October 17, 2005 Hi All, A newbie to ASp.NET. Today I just made a user management web site kinda thing. In this when I click on a link to edit prifile of a user, It opens up the page which is same as is used for adding a user with all the information filled up. I can get all information from the database but not Password. With the textmode of the textbox set to Password, it does not display the password as "*****" in the Password textbox. Could someone tell me why is it so ? Thanks in Advance Ashutosh Quote http://vyasashutosh.blogspot.com
bri189a Posted October 18, 2005 Posted October 18, 2005 Only thing I can think of is your dynamically changing the text mode and you're doing the change after the text box has fired it's events in which case the change won't take place right away. Quote
ashutosh9910 Posted October 18, 2005 Author Posted October 18, 2005 Only thing I can think of is your dynamically changing the text mode and you're doing the change after the text box has fired it's events in which case the change won't take place right away. No I am not changing it dynamically. It is set to Password at the design time only and is nmot changed since then. Meanwhile instead of txtPassword.text = ds.Tables(0).Rows(0)(1) If i say txtPassword.Attributes.Add("Value",ds.Tables(0).Rows(0)(1)) It works fine. Could not understand why is it so. Ashutosh Quote http://vyasashutosh.blogspot.com
bungpeng Posted October 18, 2005 Posted October 18, 2005 I think it is .net security control. I also face the same, but i don't think it is problem for me. Because normally change password is another screen called: change password. To change user profile information, you should not allow them to change password there. Quote
ashutosh9910 Posted October 18, 2005 Author Posted October 18, 2005 Well it is a problem to me as I am using the same for Adding a user and for editing his information. Also I am checking if all the mandatory information is supplied ( password is also a mandatory field) and so it creates problem at that time. Ashutosh Quote http://vyasashutosh.blogspot.com
bungpeng Posted October 18, 2005 Posted October 18, 2005 You can do it this way: If password field blank, then password remain no change. Otherwise, update the password. Quote
ashutosh9910 Posted October 19, 2005 Author Posted October 19, 2005 You can do it this way: If password field blank, then password remain no change. Otherwise, update the password. That could be a possible error in case of adding a new user as it would allow using Blank Password. Ashutosh Quote http://vyasashutosh.blogspot.com
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.