I am developing online exam application but the problem is that when the user login and come across the questions we have 4 options for each question with corresponding radiobuttons but user can check more than one option which i don't want
In short i want to prevent user from choosing more than one options
Any help would be greatly appreciated
I am a newbee to .net
CODE
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>AnkurDeepakShop</title>
</head>
<body>
<form method="post" runat="server">
<asp:DataList ID="DataList1" runat="server" DataKeyField="QID" DataSourceID="SqlDataSource1"
Width="400" BackColor="MistyRose">
<ItemTemplate>
<asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Question") %>'>
</asp:Label>
</b>
<br />
<asp:RadioButton ID="rd1" runat="server" Text='<%# Eval("Option1") %>'/>
<br />
<asp:RadioButton ID="RadioButton1" runat="server" Text='<%# Eval("Option2 ") %>'/>
<br />
<asp:RadioButton ID="RadioButton2" runat="server" Text='<%# Eval("Option3") %>'/>
<br />
<asp:RadioButton ID="RadioButton3" runat="server" Text='<%# Eval("Option4") %>'/>
</b>
</ItemTemplate>
</asp:DataList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="select * from quiz "></asp:SqlDataSource>
</form>
</body>
</html>
Thanks in advance