protected void Page_Load(object sender, EventArgs e) { // access master page from nested master page Protected.ClaimRuler masterPage = Master.Master as Protected.ClaimRuler; // check user permission masterPage.checkPermission(); if (!Page.IsPostBack) { legacyInvoices.bindData(); } }
protected void Page_Load(object sender, EventArgs e) { // access master page from nested master page Protected.ClaimRuler masterPage = Master.Master as Protected.ClaimRuler; // check user permission masterPage.checkPermission(); clientID = SessionHelper.getClientId(); userID = SessionHelper.getUserId(); leadID = SessionHelper.getLeadId(); claimID = SessionHelper.getClaimID(); if (!Page.IsPostBack) { bindData(); } }
protected void Page_Load(object sender, EventArgs e) { // access master page from nested master page Protected.ClaimRuler masterPage = Master.Master as Protected.ClaimRuler; // check user permission masterPage.checkPermission(); int invoiceID = 0; if (!Page.IsPostBack) { bindData(); } if (int.TryParse(ViewState["InvoiceID"].ToString(), out invoiceID) && invoiceID > 0) { showToolbarButtons(); } }