On click of the Radio button event should fire to display the answer?

Posted by Iluvdotnetfunda under C# on 3/29/2012 | Points: 10 | Views : 1255 | Status : [Member] | Replies : 3
Hi Friends,

I have a query, onclick of the radio button javascript function should fire to display the correct answer in Quiz Application.
For example i have 4 radio buttons onclick of any radio button correct answer should fire.
And the name in the datatable is UserCorrectObjectiveAnswer. How to display the correct answer on click of the radio button.

Thanks in advance.
iluvdotnetfunda




Responses

Posted by: Rajni.Shekhar on: 3/29/2012 [Member] Bronze | Points: 25

Up
0
Down
using jquery u can do this, extract correct answer from db and show it.

Thanks,
Rajni Shekhar

Iluvdotnetfunda, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Iluvdotnetfunda on: 3/29/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

<asp:RadioButtonList ID="rblist" runat="server" onclick="ShowAnswer">     

</asp:RadioButtonList>


And also i used onClientClick , OnSelectedIndexChanged but those not working, Why? list items given from code behind
Please help me....
Thanks.


Iluvdotnetfunda, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sahoo on: 3/30/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

Do one thing. ON onclick method send the question no associated with that button.Fetch the data and show in a popup.Let me know if ur are able to send question no or not.

Iluvdotnetfunda, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response