if (Session["EmailID"] != null)
{
String sid, sname;
sid = ddlSubjects.SelectedItem.Value;
sname = ddlSubjects.SelectedItem.Text;
Examination exam = new Examination(Session["EmailID"].ToString(), Int32.Parse(sid), sname); // Problem here
exam.GetQuestions();
Session.Add("questions", exam);
Response.Redirect("examination.aspx");
}

SenthilkumarRank #387 · 6.5K reputationPosted Mar 4, 2012, 3:13 AM EST
Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 4, 2012, 6:39 PM EST
Try
Examination exam = new Examination{ emailid = Session["EmailID"].ToString(), sid = Int32.Parse(sid), sname = sname};
can please prove more information on proble?