Displaying a panel when the page loads
I am writing my first two programs in ASP.NET, using Visual Basic.
The first is a questionaire form, the second sends the data collected from
the form out in an email.
The questionaire in the first program has two panels, a yesPanel and a
The first question of the questionaire asks a question which can be answered
yes or no using radio buttons.
If the answer is yes, the yesPanel should be visible and the noPanel should
be hidden, and vice versa.
This part is working OK. There is a <div> around each panel and when each
radio button is clicked,
The part I haven't figured out yet is this.
The questionaire opens with the yes RadioButton selected.
I would like the yesPanel to display as well when the page loads, but I
haven't figured out a way to do it.
I tried yesPanel.Visible = "True" but this doesn't work because there are
<div>s around the Panel.
I have had it working perfectly using buttons instead of radio buttons, but
I need to use radio buttons.
Anyway, I have spent a lot of time on it already, so I am now turning to the
ng for help.
(If I have neglected to explain anything about the problem, please let me
know, and I will reply.)
Thank you so much for your help -
Re: Displaying a panel when the page loads
"I have had it working perfectly using buttons instead of radio
I need to use radio buttons. "
so when you are using.. buttons it did make post back...
turn your radio-buttons auto post back to true...
Best of luck
|All times are GMT. The time now is 10:15 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.