Last post Nov 11, 2015 11:24 AM by bruce (sqlwork.com)
Nov 10, 2015 04:01 AM|mcrono|LINK
I have a page which i have added web login control. Based on the windows log on user name, the system picks the username and display the name on the username textbox. When i try to put some default password on the password textbox . It picks ok but when
i click on Login, it puts * on the password textbox. Is there a way i can avoid this so that i can put the default password and it goes through. Or is there a way i can remove validation on the password textbox.
WinLoggedinUser = System.Environment.UserName
Login1.UserName = WinLoggedinUser
Dim Password As TextBox = TryCast(Login1.FindControl("Password"), TextBox)
If Password IsNot Nothing Then
Password.Attributes("value") = "Password"
Please help am stuck
Nov 11, 2015 11:24 AM|bruce (sqlwork.com)|LINK
this is an asp.net 5 forum. as asp.net 5 supports neither vb.net nor webforms, so you question is better asked in a different forum.
but your issue is <input type="password">. the browser will not allow setting of the value by the server. you can just check for blank on postback, and supply the password.