protected void btnSave_Click(object sender, System.EventArgs e) { DataSet dsOrder = (DataSet)Session["dsOrder"]; if (this.Save(this.oOrder, dsOrder, this.oOrder.TableName) == mmSaveDataResult.RulesPassed) { Response.Redirect("Contact.aspx?Id=" + this.iContactId); } }When I put a breakpoint after the first line, all the values in the dsOrder dataset are null (or default), which seems to be because it got reset at the bottom of the page_Load method that ran right before this. Do I want it to skip the page_Load when I save?
>DataSet dsOrder = (DataSet)Session["dsOrder"];
>
>>> protected void Page_Load(object sender, EventArgs e) >> { >>// EventGolf oEvent = new Wala.Membership.Business.EventGolf(); >>// mmBindingList<EventGolfEntity> oGolfEvents = oEvent.GetAllEntities(); >> this.oOrder = (Reg_Golf)this.RegisterBizObj(new Reg_Golf()); >> this.oFee = (Fee)this.RegisterBizObj(new Fee()); >> this.iContactId = int.Parse(String.IsNullOrEmpty(Request.QueryString["ContactId"]) ? "0" : Request.QueryString["ContactId"]); >> >> this.iOrderId = int.Parse(String.IsNullOrEmpty(Request.QueryString["OrderId"]) ? "0" : Request.QueryString["OrderId"]); >> >> // Retrieve the specified order and detail >> if (! this.oOrder.getOrderById(this.iOrderId)) >> { >> this.oOrder.NewEntity(); >> this.oOrder.Entity.numIndID = this.iContactId; >> } >> Session["dsOrder"] = this.oOrder.DataSet;>>
>> <mm:mmButton ID="btnSave" runat="server" AccessLevel="Full" BindingSource="" BindingSourceMember="" >> ControlID="00000000-0000-0000-0000-000000000000" IsPostBack="False" SecuritySetup="True" >> Text="Save Sale" UserFieldName="" onclick="btnSave_Click" >> UseSubmitBehavior="False" /> >>>>