I have a few simple asp.net pages forming sort of a wizard type interface. Each page has a form that uses an with form fields that bind to LINQ entities on the back end. So I'm letting asp/linq do the work of inserting the data into the DB. One problem I'm running into is that the pages have to post back to themselves in order to insert the data correctly, but I want them to insert the data and then go to the next step in the wizard. Is it possible to do this someway using the base functionality of asp.net or do I have to do something else? Suggestions as to another way to do this are welcome.
sample code:
<form id="frmNewAccount" runat="server">
<asp:FormView ID="frmUser" DataSourceID="srcUser" DefaultMode="Insert" runat="server">
<InsertItemTemplate>
<asp:Label ID="lblEmail" Text="Email Address (must already exist)" AssociatedControlID="txtEmail" runat="server"/>
<asp:TextBox id="txtEmail" runat="server" Text="<%# Bind("EmailAddress") %>" Width="225"></asp:TextBox>
<asp:ImageButton ID="btnInsertUser" ImageUrl="Arrow.jpg" AlternateText="Submit" CommandName="Insert" runat="server" />
</InsertItemTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="srcUser" TypeName="User" DataObjectTypeName="App.Data.User" InsertMethod="Insert" runat="server"/>
</form>