Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        connectionString = System.Web.Configuration.WebConfigurationManager.AppSettings["ConnectionString"].ToString();
        if (!Page.IsPostBack)
        {
            string strID = null;
            if (Request.QueryString["id"] != null)
            {
                strID = Request.QueryString["id"].ToString();
                ViewState["STDOID"] = strID;
                Session["STUOID"] = strID;
            }
            populateDropdownList();
            Student stu = new Student();
            string strOID = stu.GetStudentIDByStudentBannerOID(Convert.ToInt32(strID));
            Populate(strOID);
            populateDropdownList();
            PopulateSection(ddlAssesment.Text, strOID);
            PopulateSectionNoScore(ddlAssesment.Text, strOID);
            PopulateCourseByStudentID();
            int AOID = 0;
            if (ddlAssesment.Text != null && ddlAssesment.Text != "")
            {
                AOID = new Sections().GetAssessmentOIDByAssessmentName(ddlAssesment.Text);
            }
            if (!string.IsNullOrEmpty(strID))
            {
                this.BindRiskCalculation(AOID, Convert.ToInt32(strID));
            }
            int RiskOID = 0;
            if (LabelRisk.Text != "")
            {
                RiskOID = new RiskCalculation().GetRiskOIDByAOIDAndName(AOID, LabelRisk.Text);
            }
            ViewState["ROID"] = RiskOID;
            HiddenRiskOID.Value = RiskOID.ToString();
            PopulateGridIntervention(RiskOID);
            rowID = stu.GetStudentRowIDByBannerID(lblID.Text.Trim());
            ViewState["RowID"] = rowID;

        }
    }