Title: adp.GetDataBy_att                                 If you need copy same format use firefox or chrome or safari but iexplorer not work


Preview of Code
  protected void Button1_Click(object sender, EventArgs e)
        {
 
            try
            {
              //  myinfo.Attributes.Add("style", "display:block;width:200px;margin:0px auto;text-align:center;font-size:16px;color:green;font-weight:bold");
                lblemp_name.Text = string.Empty;
            lbldept_name.Text = string.Empty;
           
            dt = adp.GetDataBy_att(txtfromdate.Text.Trim(), txttodate.Text.Trim(), Convert.ToDecimal(txtemp_no.Text.Trim()));
 
            myDataSet01 ds = new myDataSet01();
            ds.ATTENDANCE.Clear();
            adp.FillBy_att(ds.ATTENDANCE, txtfromdate.Text.Trim(), txttodate.Text.Trim(), Convert.ToDecimal(txtemp_no.Text.Trim()));
 
            if (ds.ATTENDANCE.Count > 0)
            {
 
                if (!dt[0].IsDPT_DESCNull())
                                   lbldept_name.Text = dt[0].DPT_DESC.ToString();
                if(!dt[0].IsEMP_NAMENull()) 
                lblemp_name.Text = dt[0].EMP_NAME.ToString();
               
                        Session["ds"] = ds.ATTENDANCE;
                        GridView1.DataSource = ds.ATTENDANCE.DefaultView;
                        GridView1.DataBind();
 
                lblmsg.Text = String.Empty;
 
            }
            else
            {
                lblmsg.Text = "يوجد خطا او  الرقم غير موجود";
                ds.ATTENDANCE.Clear();
                GridView1.DataSource = ds;
                GridView1.DataBind();
               
            }
 
 
            }
            catch
            {
 
 
                lblmsg.Text = "حدث خطا اثناء تنفيذ البرنامج";
            }
        }