Beispiel #1
0
    protected void btnGo_Click(object sender, EventArgs e)
    {
        try
        {
            if (txtDateCalender.Text != " ")
            {
                string    Date     = txtDateCalender.Text;
                DataTable NewTable = Deliver.NewUndeliveredSMS(Date);
                if (NewTable.Rows.Count > 0)
                {
                    GrdMsgStatus.DataSource = NewTable;
                    GrdMsgStatus.DataBind();
                    txtDateCalender.Text = "";
                    lblMsg.Text          = "";
                }
                else
                {
                    GrdMsgStatus.DataSource = null;
                    GrdMsgStatus.DataBind();
                }
            }
        }



        catch (Exception ex)
        {
            throw ex;
        }
    }
Beispiel #2
0
 protected void btnViewCancel_Click(object sender, EventArgs e)
 {
     try
     {
         txtDateCalender.Text    = "";
         lblMsg.Text             = "";
         GrdMsgStatus.DataSource = null;
         GrdMsgStatus.DataBind();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }