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.
LVL 1
punjwaniAsked:
Who is Participating?
 
nayernaguibCommented:
You need to set the AutoPostBack property of the checkbox to true.

________________

  Nayer Naguib
0
 
punjwaniAuthor Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.