BBS.PROGENIC.COM
Home      Members   Calendar   Who's On   SOTM
Welcome Guest ( Login | Register )
      

Home » Chat » Coding » No-one else knows the answer so I turn to...


No-one else knows the answer so I turn to you...Expand / Collapse
Author
Message
Posted Friday, May 23, 2008 3:41 PM


Progenic Family

Progenic Family

Group: Old Skool
Last Login: Today @ 12:17 PM
Posts: 576, Visits: 3,876
Problem... I have some RadioButtons within the Accordion, I want to make it so that when one of the radio buttons is selected then the user is forwarded to another page.
Ive achieved this without the Accordion in the past, using the "autopostback=true" option and then calling a sub when a radiobutton is checked: "OnCheckChanged=name_of_sub"

I try this exact same method with Radio Buttons that are within an Accordion and I get the following error: "Object reference not set to an instance of an object."
- So I tried to declare/find the radiobutton with the following: "Dim Button1 As RadioButton = Accordion1.FindControl("Button1")"... but still I get the same error.

Has anyone been able to put a radiobutton within an Accordion control?
Post #14553
Posted Saturday, May 24, 2008 7:56 AM


Progenic Crew

Progenic Crew

Group: Administrators
Last Login: Yesterday @ 12:27 PM
Posts: 2,388, Visits: 37,337
What the hell is an accordion? Do you need to store the value, if not you could just use javascript.

 ----------Radio Button?

 

Post #14558
Posted Saturday, May 24, 2008 9:05 AM


Progenic Family

Progenic Family

Group: Old Skool
Last Login: Today @ 12:17 PM
Posts: 576, Visits: 3,876
Idea was that they click the radio button and then get redirected to whichever relevant page
Post #14561
Posted Saturday, May 24, 2008 12:24 PM


Progenic Crew

Progenic Crew

Group: Administrators
Last Login: Yesterday @ 12:27 PM
Posts: 2,388, Visits: 37,337
Ok I don't know javascript but you want the onclick event. Google onclick javascript redirect.

 
Post #14562
Posted Saturday, May 24, 2008 2:56 PM


Progenic Family

Progenic Family

Group: Old Skool
Last Login: Today @ 12:17 PM
Posts: 576, Visits: 3,876
I fixed it... to be honest im not too sure how I fixed it but i have

 - And thanks electra for the nudge in the right direction

Post #14563
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: proge, wax

All times are GMT -6:00, Time now is 10:48pm

Progenic BBS 2008
Execution: 0.328. 10 queries. Compression Enabled.