protected void Button1_Click(object sender, EventArgs e)
    {
        Panel2.Visible = false;
        reset();

        Panel1.Visible = false;
        string patientName = TextBox1.Text;
        Common_SearchOPDPatientBL objSearchOPDPatientBL = new Common_SearchOPDPatientBL();

        ds = objSearchOPDPatientBL.Common_SearchOPDPatient(patientName);
        if (ds.Tables[0].Rows.Count == 0)
        {
            GridView1.DataSource = null;
            GridView1.DataBind();
            Label1.Visible   = true;
            Label1.Text      = "No Patient Found";
            Label1.ForeColor = System.Drawing.Color.Red;
        }
        else
        {
            Label1.Visible       = false;
            GridView1.DataSource = ds;
            GridView1.DataBind();
        }
    }
 protected void Button1_Click(object sender, EventArgs e)
 {
     string patientName = TextBox1.Text;
     Common_SearchOPDPatientBL objSearchOPDPatientBL = new Common_SearchOPDPatientBL();
     ds = objSearchOPDPatientBL.Common_SearchOPDPatient(patientName);
     if(ds.Tables[0].Rows.Count == 0)
     {
         Label1.Text = "No Patient Found";
         Label1.ForeColor = System.Drawing.Color.Red;
         GridView1.DataSource = null;
         GridView1.DataBind();
     }
     else
     {
         GridView1.DataSource = ds;
         GridView1.DataBind();
     }
 }
 protected void Button1_Click(object sender, EventArgs e)
 {
     string patientName = TextBox1.Text;
     Common_SearchOPDPatientBL objSearchOPDPatientBL = new Common_SearchOPDPatientBL();
     ds = objSearchOPDPatientBL.Common_SearchOPDPatient(patientName);
     if (ds.Tables[0].Rows.Count == 0)
     {
         GridView1.DataSource = null;
         GridView1.DataBind();
         Label1.Visible = true;
     }
     else
     {
         Label1.Visible = false;
         GridView1.DataSource = ds;
         GridView1.DataBind();
     }
 }
예제 #4
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        string patientName = TextBox1.Text;
        Common_SearchOPDPatientBL objSearchOPDPatientBL = new Common_SearchOPDPatientBL();

        ds = objSearchOPDPatientBL.Common_SearchOPDPatient(patientName);
        if (ds.Tables[0].Rows.Count == 0)
        {
            GridView1.DataSource = null;
            GridView1.DataBind();
            Label1.Visible = true;
        }
        else
        {
            Label1.Visible       = false;
            GridView1.DataSource = ds;
            GridView1.DataBind();
        }
    }