public void BindData() { ServicePage ObjHome = new ServicePage(); DataSet ds = new DataSet(); ds = ObjHome.GetServicePageAdmin(Convert.ToInt32(ddlUserType.SelectedValue)); if (ds.Tables[0].Rows.Count > 0) { GrdService.Visible = true; GrdService.DataSource = ds.Tables[0]; GrdService.DataBind(); Utility.Setserial(GrdService, "srno"); } else { GrdService.Visible = true; } }
public void BindData() { //if (Request.QueryString["UserType"] != null) //{ // ddlUserType.SelectedItem.Value = Request.QueryString["UserType"]; //} ServicePage ObjHome = new ServicePage(); DataSet ds = new DataSet(); // ds = ObjHome.GetServicePageAdmin(Convert.ToInt32(ddlUserType.SelectedValue)); ds = ObjHome.GetServicePageAdmin(Convert.ToInt32(Session["UserType"])); if (ds.Tables[0].Rows.Count > 0) { ServiceIDs = Convert.ToInt32(ds.Tables[0].Rows[0]["ServiceID"].ToString()); GrdService.Visible = true; GrdService.DataSource = ds.Tables[0]; GrdService.DataBind(); Utility.Setserial(GrdService, "srno"); } else { GrdService.Visible = true; } }