protected override void Page_Load(object sender, EventArgs e) { this.Master.Setup(false, true, Layer02_Constants.eSystem_Modules.ContributorApproval, true); base.Page_Load(sender, e); this.Page.LoadComplete += new EventHandler(Page_LoadComplete); this.Btn_Approve.Click += new EventHandler(Btn_Approve_Click); if (this.IsPostBack) { this.mObj = (ClsContributorRegistration)this.Session[this.pObjID]; } }
void Process_Register() { StringBuilder Sb_ErrorMsg = new StringBuilder(); if (!this.Process_Validation(ref Sb_ErrorMsg)) { this.Show_EventMsg(Sb_ErrorMsg.ToString(), ClsBaseMain_Master.eStatus.Event_Error); return; } ClsContributorRegistration Obj_Cr = new ClsContributorRegistration(this.Master.pCurrentUser); Obj_Cr.Load(); Obj_Cr.pDr["Name"] = this.Txt_UserName.Text; Obj_Cr.pDr["Email"] = this.Txt_Email.Text; Obj_Cr.Save(); //[-] System.Collections.Hashtable Ht = new System.Collections.Hashtable(); Ht.Add(CnsContributorRegistration, true); this.Session[Layer01_Constants_Web.CnsSession_TmpObj] = Ht; this.Response.Redirect("~/Page/ContributorRegistrationFinish.aspx"); }
void SetupPage() { this.mObj = new ClsContributorRegistration(this.Master.pCurrentUser); this.Session[this.pObjID] = this.mObj; this.mObj.List(); List<ClsBindGridColumn_Web_Telerik> List_Gc = new List<ClsBindGridColumn_Web_Telerik>(); List_Gc.Add(new ClsBindGridColumn_Web_Telerik("Name", "Contributor Name", 400)); List_Gc.Add(new ClsBindGridColumn_Web_Telerik("Email", "Email", 400)); List_Gc.Add(new ClsBindGridColumn_Web_Telerik("DateRequested", "Date Requested", 120,"{0:MMM dd, yyyy}")); this.GridList.Setup_FromDataTable(this.Master.pCurrentUser, this.mObj.pDt_List, List_Gc, "TmpKey", true, true, Methods_Web_Telerik.eSelectorType.Multiple); }