private void EditData(int EventCode) { try { tbl_EventMasterProp Objtbl_EventMasterProp = new tbl_EventMasterProp(); Objtbl_EventMasterProp.EventCode = EventCode; int PageCount = 0; tbl_EventMasterBAL Objtbl_EventMasterBAL = new tbl_EventMasterBAL(); DataSet dsData = Objtbl_EventMasterBAL.Select_Data(Objtbl_EventMasterProp, ref PageCount); txtEventName.Text = Convert.ToString(dsData.Tables[0].Rows[0]["EventName"]); ViewState["EditCode"] = EventCode; } catch (Exception ex) { throw ex; } }
private void FillData() { try { int PageCount = 0; tbl_EventMasterProp Objtbl_EventMasterProp = new tbl_EventMasterProp(); Objtbl_EventMasterProp.EventCode = 0; Objtbl_EventMasterProp.PageNo = Convert.ToInt32(txtCurPage.Text); Objtbl_EventMasterProp.RecordCount = Convert.ToInt32(20); tbl_EventMasterBAL Objtbl_EventMasterBAL = new tbl_EventMasterBAL(); DataSet dsData = Objtbl_EventMasterBAL.Select_Data(Objtbl_EventMasterProp, ref PageCount); lblTotalPage.Text = Convert.ToString(PageCount); grdData.DataSource = dsData.Tables[0]; grdData.DataBind(); } catch (Exception ex) { throw ex; } }