示例#1
0
    protected void btnsearch_Click(object sender, EventArgs e)
    {
        bll clconn = new bll();
        DataTable dt = new DataTable();
        dt = clconn.clientview(Session["query"].ToString());
        if (dt != null)
        {
            GridView1.DataSource = dt;
            GridView1.DataBind();

        }
        else
        {
            lblresult.Text = "There is no such complain registered.";

        }
        //UpdatePanel2.Visible = false;
    }