Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am going to build online examination system in asp.net using c#.I have created a wizard for online exam but whenever I go to next step and then come back to previous step what I found is the selected radiobuttonr remain unselected. Why this is happening? and what is the solution?

One more question I want to ask :- can I place timer, exam name and total marks at the top of every step without repeating it in every step in wizard control? If yes,then how?

What I have tried:

HERE IS THE .cs CODE OF FIRST STEP OF WIZARD :-

C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;

public partial class Demo : System.Web.UI.Page
{
    SqlConnection con;
     
    public Demo()
    {
        con = new SqlConnection();
        con.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ToString();
        
    }


    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void wizard1(Object sender, System.EventArgs e)
    {
        SqlDataAdapter adp = new SqlDataAdapter("select top 10 Question,Option1,Option2,Option3,Option4 from Questions", con);
        DataTable dt = new DataTable();
        adp.Fill(dt);
        Repeater1.DataSource = dt;
        Repeater1.DataBind();


    }
}


If there is any mistake in the code then please specify
Posted
Updated 2-Apr-16 2:17am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900