Hi everybody.
I fairly new in developing with Visual Studio 2003. This is the scenario
I would like to have a checkbox, which when checked is going to show a textbox. I believe this should be fairly easy to do, but I just cannot make it work. When checked the program is trying to execute something, but doesn't show the box.
I'm using following handler
private void CheckBox6_CheckedChanged(object sender, System.EventArgs e)
{
if (CheckBox6.Checked==true)
{
TextBox3roads.Height=72;
TextBox3roads.Visible=true;
}
else
{
Textbox3roads.Height=0;
Textbox3roads.Visible=false;
}
}
This is the HTML part of the control
asp:checkbox id="CheckBox" runat="server" Width="400px" AutoPostBack="True"></asp:checkbox>
So what am I missing here? Could someone give me some instruction?
Thanks.