Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Form
Message
From
01/07/2009 12:27:30
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
01409563
Message ID:
01409596
Views:
41
>The btnSave_Click looks like this:
>
>
>  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?
>

If you have a breakpoint here, then put your mouse over the dsOrder and then click on the dataset viewer (the little magnifieng glass) to view what is in the dataset. I would mention, when you look at the values in the entity object the variables will show null but if you scroll down the values should be in the properites still. Easiest to look at the dataset through the viewer. If that is OK, then you need to step into the code and find what is really happening.
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform