OnClick Event of Radio Button DOES NOT WORK in either Firefox or IE

5 pts.
Tags:
ASP.NET
ASP.NET 2008
VB
Visual Basic
HELLO EVERYONE!!! I am working on a project where I am dynamically instantiates radio buttons based on the database. I am using ASP.Net/VB to code this. The portion where I initialized data from the database works fine but the radio buttons does work when clicked. here's the sample code: BGrpCode = "" & strGrpID & "" Dim dvQuest As New DataView(tblQuestions, "bqgcode = '" & tmpVal1 & "'", "bqcode ASC", DataViewRowState.CurrentRows) For Each drvQT As DataRowView In dvQuest strID = drvQT("bqcode").ToString() 'BQuesCode += "" & _ ' "" & _ ' "" & _ ' "" & drvQT("bqdescr").ToString() & "" & _ ' "" BQuesCode += "" & _ "[Input runat="'server'" id="'RadioButtonMO"" name="'MO"" value="'RadioButtonMO"" onclick="'<mce:script" language="""vbscript""" type="'radio'" />[!-- If RadioButtonMO1.Checked = true Then RadioButtonLO1.Enabled = False // --][/asp:radiobutton]' />" & _ "[Input runat="'server'" id="'RadioButtonLO"" name="'LO"" value="'RadioButtonLO"" onclick="'<mce:script" language="""vbscript""" type="'radio'" />[!-- If RadioButtonLO1.Checked = true Then RadioButtonMO1.Enabled = False // --][/asp:radiobutton]' />" & _ "" & drvQT("bqdescr").ToString() & "" & _ "" Next dvQuest.Dispose() strODD += BGrpCode & BQuesCode & "" I ALREADY USED SCRIPTS OF JAVA AND VB, BUT STILL THEY WON'T WORK... THANKS IN ADVANCE... hadric1209 =)

Software/Hardware used:
VB/ASP.Net 2008
ASKED: January 14, 2010  9:25 AM
UPDATED: January 22, 2010  6:10 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

You need to dynamically add asp.net controls to the form and then tie events to them. See <a href=”http://www.dreamincode.net/forums/showtopic39831.htm”>this</a> post.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following