protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { GenerateCalendar(); GenerateTaskOnCalendar(); Student stu = new Student(); //string strOID = stu.GetFirstStudentID(); int firstRowID = 1; string strOID = stu.GetStudentByRowID(firstRowID); ViewState["RowID"] = firstRowID; int StdOID = stu.GetStudentOIDByStudentBannerID(strOID); //dtStudents = ViewState["StuID"] = StdOID; string fassName = ""; Sections sec = new Sections(); Populate(Convert.ToString(strOID)); populateDropdownList(); fassName = sec.GetFirstAssessmentName(); //PopulateSection(ddlAssesment.Text, Convert.ToInt32(StdOID)); PopulateSection(ddlAssesment.Text, strOID); PopulateSectionNoScore(ddlAssesment.Text, strOID); Initialization(); populateChart(); } }