protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Session["start"] = DateTime.Now; } ques = Questions.GetQuestions(); if (ques.IsMCQ(Index)) { Label1.Text = ques.getMCQ(Index).Question; MultiView1.ActiveViewIndex = 0; } else if (ques.IsBlank(Index)) { Label2.Text = ques.getBlank(Index).Question; MultiView1.ActiveViewIndex = 1; } else if (ques.IsBool(Index)) { Label3.Text = ques.getBool(Index).Question; MultiView1.ActiveViewIndex = 2; } }