How to hide TextBox with CheckBox in Web page?

  • Thread starter Thread starter veso dimov
  • Start date Start date
V

veso dimov

Guest
Hello, friends.

I work with Visual Studio 2013 Pro and I want to make, with Visual Basic, web site /File -- New -- Web site/ with one CheckBox and one TextBox - when I check the checkbox to hide TextBox.

I know the right code, but for Windows Forms:

Handles CheckBox1.CheckedChanged, TextBox1.TextChanged
If (CheckBox1.Checked = True) Then
TextBox1.Visible = False
End If
If (CheckBox1.Checked = False) Then
TextBox1.Visible = True
End If
End Sub

But this code don't work for Web pages.

Please help me with right code on Visual Basic for Web page to hide TextBox with CheckBox.

Best regards

Veso Dimov

Continue reading...
 
Back
Top