• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

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.
0
punjwani
Asked:
punjwani
1 Solution
 
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
 
nayernaguibCommented:
You need to set the AutoPostBack property of the checkbox to true.

________________

  Nayer Naguib
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now