Handling Formview Mode and page navigation
somebody can help me on these please....:D
<asp:TreeView ID="TreeView1" runat="server">
<Nodes>
<asp:TreeNode Text="Employees">
<asp:TreeNode Text="Add" Value="Add" NavigateUrl="~/AddEditEmployee.aspx" />
<asp:TreeNode Text="Search" Value="Search" />
<asp:TreeNode Text="Candidate Search" Value="Candidate Search" />
</asp:TreeNode>
</Nodes>
</asp:TreeView>
on my "AddEditEmployee.aspx" page i am using a formview to add and/or edit employee record. What I want to do is, when i click the "Add" on my TreeView I want my formview in "AddEditEmployee.aspx" page to be in Insert mode so that I am able to add new employee. After filling all the required information and click Save button in my formview it automatically redirected to a summary page where the new employee's records are displayed. In this summary page if i clicked the name of the new employee I want page to to return "AddEditEmployee.aspx" page with the formview in Edit mode.
what is best way to handle these problem?.. thank you in advance.. it will be a great help..