public void RenewalAlerts()
    {
        clsAlerts obj = new clsAlerts();

        obj.Op = 4;
        DataTable dt = obj.Alerts(obj).Tables[0];

        Context.Response.Write(JsonConvert.SerializeObject(dt));
    }
예제 #2
0
 string Renewal()
 {
     try
     {
         clsAlerts obj = new clsAlerts();
         obj.SiteID = Convert.ToInt32(Request.Cookies["SiteID"].Value);
         obj.Op     = 4;
         DataTable dt = obj.Alerts(obj).Tables[0];
         return(dt.Rows.Count.ToString());
     }
     catch
     {
         return("");
     }
 }
    void LoadAlerts()
    {
        clsAlerts obj = new clsAlerts();

        obj.Op = 4;
        DataTable dt = obj.Alerts(obj).Tables[0];

        grdAlerts.DataSource = dt;
        grdAlerts.DataBind();
        if (grdAlerts.Rows.Count > 0)
        {
            lblError.Text = "";
        }
        else
        {
            lblError.Text = "No records found";
        }
    }
예제 #4
0
    void LoadAlerts()
    {
        clsAlerts obj = new clsAlerts();

        obj.Op     = 7;
        obj.SiteID = Convert.ToInt32(Request.Cookies["SiteID"].Value);
        DataTable dt = obj.Alerts(obj).Tables[0];

        grdAlerts.DataSource = dt;
        grdAlerts.DataBind();
        if (grdAlerts.Rows.Count > 0)
        {
            lblError.Text = "";
        }
        else
        {
            lblError.Text = "No Records found";
        }
    }