private void LoadFollowUps(int OFFICE_ID, int VESSEL_ID, int WORKLIST_ID) { try { DataTable dtFollowUps = objBLL.Get_FollowupList(OFFICE_ID, VESSEL_ID, WORKLIST_ID); grdFollowUps.DataSource = dtFollowUps; grdFollowUps.DataBind(); } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BLL_Tec_Worklist objBLL = new BLL_Tec_Worklist(); int Worklist_ID = UDFLib.ConvertToInteger(Request.QueryString["WLID"].ToString()); int Vessel_ID = UDFLib.ConvertToInteger(Request.QueryString["VID"].ToString()); int Office_ID = UDFLib.ConvertToInteger(Request.QueryString["OFFID"].ToString()); DataTable dt = objBLL.Get_FollowupList(Office_ID, Vessel_ID, Worklist_ID); grdFollowUps.DataSource = dt; grdFollowUps.DataBind(); } }
protected void rpt1_ItemDataBound(object sender, RepeaterItemEventArgs e) { try { RepeaterItem item = e.Item; if (item.ItemType == ListItemType.Item || item.ItemType == ListItemType.AlternatingItem) { Repeater childRepeater = (Repeater)item.FindControl("rpt2"); int OFFICE_ID = int.Parse(DataBinder.Eval(e.Item.DataItem, "OFFICE_ID").ToString()); int WORKLIST_ID = int.Parse(DataBinder.Eval(e.Item.DataItem, "WORKLIST_ID").ToString()); int VESSEL_ID = int.Parse(DataBinder.Eval(e.Item.DataItem, "VESSEL_ID").ToString()); DataTable dtFollowUps = objBLL.Get_FollowupList(OFFICE_ID, VESSEL_ID, WORKLIST_ID); childRepeater.DataSource = dtFollowUps; childRepeater.DataBind(); } } catch { } }