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");
}
Jignesh TrivediPosted Mar 4, 2012, 11:39 PM
Try
Examination exam = new Examination{ emailid = Session["EmailID"].ToString(), sid = Int32.Parse(sid), sname = sname};
can please prove more information on proble?
SenthilkumarPosted Mar 4, 2012, 8:13 AM