Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Displaying a panel when the page loads

Reply
Thread Tools

Displaying a panel when the page loads

 
 
Joy M
Guest
Posts: n/a
 
      06-20-2008
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 <div> around 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



 
Reply With Quote
 
 
 
 
Munna
Guest
Posts: n/a
 
      06-21-2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - browser loads another page after home page Cindy Stuart Computer Support 4 04-29-2007 03:29 AM
Swing, JTabbedPane/Panel/Panel JC Java 1 08-09-2006 09:44 PM
Delete a panel inside a panel (2) HS1 Java 4 12-08-2004 02:48 AM
Delete a panel inside a panel HS1 Java 3 12-07-2004 10:50 PM
Email From Forms with asp:panel.(s) Only one panel works? Harry ASP .Net 3 11-10-2003 03:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57