Link to home
Start Free TrialLog in
Avatar of punjwani
punjwaniFlag for United States of America

asked on

How to detect click event on a check box using ASP.net / code behind VB.

How to detect click event on a check box using ASP.net / code behind VB.

I just created one sample login page. What I want to do is when ever

text box for User ID :
text box for Password:
Check box for Windows Authentication

Private Sub chkWinAuthentication_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
    txtPassword.Enabled = True
    txtUserName.Enabled = True
End Sub

I dont know why but its not fire the this event.
Avatar of punjwani
punjwani
Flag of United States of America image

ASKER

Sorry my question was incomplete

I just created one sample login page. What I want to do is when ever  I checked chkWinAuthentication I want to disable to txtPassword and txtUserName.

I tried to debug its not even go into this procedure "chkWinAuthentication_CheckedChanged", I know there I am doing on txtPassword.Enabled=True but that is only for testing.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of nayernaguib
nayernaguib
Flag of Egypt image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial