Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

HTML control for radio button not work

Avatar of yjchong514
yjchong514Flag for United States of America asked on
5 Comments1 Solution246 ViewsLast Modified:
Dear EE member,
I am a new learner for ASP.NET using vb.net to develop a simple quiz system.

I would like to store user input to radio button in each question to an array and compare it with the correct_answer array. Now, I try to retrieve the value store - but it 's not work.

Would appreciate for any help.

<%@ Page Language="VB" %>
<title>Test Question - ASPX</title>
<script language="VB" runat="server">

Sub buttonClick(Sender As Object, e As Eventargs)
 Dim index As Integer = 2
 Dim dataInput(index) As String 


 For i=0 to 2
    Response.write dataInput(i) & "<BR>"
 Next i
End Sub
<form runat="Server">
1. Select an animal which eats fish?
<input type="radio" id="qone" name="qone" value="1" runat="Server">Cat
<input type="radio" id="qone" name="qone" value="2" runat="Server">Elephant
<input type="radio" id="qone" name="qone" value="3" runat="Server">Lion
<input type="radio" id="qone" name="qone" value="4" runat="Server">Deer

2. Who is Bill Gate?
<input type="radio" id="qtwo" name="qtwo" value="1" runat="Server">IBM founder
<input type="radio" id="qtwo" name="qtwo" value="2" runat="Server">Sun founder
<input type="radio" id="qtwo" name="qtwo" value="3" runat="Server">Microsoft founder
<input type="radio" id="qtwo" name="qtwo" value="4" runat="Server">Acer founder

3. What is database?
<input type="radio" id="qthree" name="qthree" value="1" runat="Server">A storage
<input type="radio" id="qthree" name="qthree" value="2" runat="Server">A dust bin
<input type="radio" id="qthree" name="qthree" value="3" runat="Server">A fruit
<input type="radio" id="qthree" name="qthree" value="4" runat="Server">A telephone

<input type="submit" name="button1" value="Complete and Send" OnServerClick="button_Click" runat="Server">
<input type="reset" name="button2" value="Start Over">
Avatar of yjchong514
yjchong514Flag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answers