Beispiel #1
0
    protected void gvQuestionList_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        gvQuestionList.PageIndex = e.NewPageIndex;

        obj_QuesEntry_BLogic = new QuesEntry_BLogic();

        DataSet ds = new DataSet();

        ds = obj_QuesEntry_BLogic.BAL_Question_Select(Convert.ToInt32(ddlbms.SelectedValue), Convert.ToInt32(ddlsct.SelectedValue), ddllevel.Text, ddlquestype.Text);
        //ds.Tables.Add(dt);
        gvQuestionList.DataSource = ds;
        gvQuestionList.DataBind();
    }
Beispiel #2
0
    protected void btnview_Click(object sender, EventArgs e)
    {
        dvviewquestions.Visible = true;
        dvquesdetails.Visible   = false;
        obj_QuesEntry_BLogic    = new QuesEntry_BLogic();

        DataSet ds = new DataSet();

        ds = obj_QuesEntry_BLogic.BAL_Question_Select(Convert.ToInt32(ddlbms.SelectedValue), Convert.ToInt32(ddlsct.SelectedValue), ddllevel.Text, ddlquestype.Text);
        //ds.Tables.Add(dt);
        gvQuestionList.DataSource = ds;
        gvQuestionList.DataBind();
    }