Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mulitsectional display on webform

Status
Not open for further replies.

vlree

IS-IT--Management
Jan 16, 2004
31
0
0
US
ASP.net Visual Studio.net Webform
I would like to display a textbox based on the True False value of a checkbox. The things I have tried have not been successful.

I would then like to go one step farther, and display a "sectional" form, based on user choice.

Code:
Public Sub CheckBox1_Checked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged

"DISPLAY TEXTBOX 1"
    End Sub

Public Sub CheckBox2_Checked(ByVal sender As Object, ByVal e As EventArgs) Handles CheckBox2.CheckedChanged

"DISPLAY TEXTBOX 2"
    End Sub
 
Code:
Public Sub CheckBox1_Checked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
    
    TextBox1.Visible = ((CheckBox)sender).Checked

    End Sub

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top