By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,611 Members | 1,642 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,611 IT Pros & Developers. It's quick & easy.

Displaying a panel when the page loads

P: n/a
Hi -

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
noPanel.
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 <divaround each panel and when each
radio button is clicked,
a javascript function is called which determines which panel is visible on
the screen.

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 -

Joy

Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

"I have had it working perfectly using buttons instead of radio
buttons, but
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

Munna

www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.