public void LoadGrid()
    {
        BLLQuestion objbll = new BLLQuestion();

        objbll.Course_code = cbcourses.SelectedItem.Value.ToString();
        List <BLLQuestion> objlist = new List <BLLQuestion>();

        objlist = objbll.Selectquestionbycourse(objbll);
        if (objlist.Count > 0)
        {
            dgquestion.DataSource = objlist;
            dgquestion.DataBind();
        }
    }
    public void LoadGrid()
    {
        BLLQuestion objbll = new BLLQuestion();

        objbll.Course_code = txtcoursecode.Text;
        List <BLLQuestion> objlist = new List <BLLQuestion>();

        objlist = objbll.Selectquestionbycourse(objbll);
        if (objlist.Count > 0)
        {
            dgquestion.DataSource = objlist;
            dgquestion.DataBind();
        }
    }