protected void Page_Load(object sender, EventArgs e) { if (Convert.ToString(Session["aId"]) != "") { string zk = "select * from inquiry where InquiryDate='" + current_time.ToShortDateString() + "' and IsAnswered=0"; DataSet ds = new DataSet(); ds = dc.getdata(zk); NoOfInqLbl.Text = ds.Tables[0].Rows.Count.ToString(); NoOfAdmInqLbl.Text = dc.GetNoOfAdmInq(); } else { Response.Redirect("~/Admin/Login.aspx"); } }
private void GetNoOfInq() { Label lbl = (Label)Page.Master.FindControl("NoOfAdmInqLbl") as Label; lbl.Text = dc.GetNoOfAdmInq(); }