I am working in Visual Studio 2005 and ASP.NET 2.0. I have created a customer form and I need to insert the details into the database as well as when I click the submit button I have to go to another .aspx page.
I have done it in Formview.
The code is
<asp:LinkButt on ID="insertButto n" runat="server" CauseValidation ="True" CommandName="in sert" PostBackUrl="`/Clinic.aspx" Text="insert"></asp:LinkButton>
Clinic.aspx is the page I finsih to go after inserting the data into the database.
If I am not giving the "PostUrl" then the data is inserting into the database.But I can't do both in one click.
Hope someone can help me
regards
preeshma
I have done it in Formview.
The code is
<asp:LinkButt on ID="insertButto n" runat="server" CauseValidation ="True" CommandName="in sert" PostBackUrl="`/Clinic.aspx" Text="insert"></asp:LinkButton>
Clinic.aspx is the page I finsih to go after inserting the data into the database.
If I am not giving the "PostUrl" then the data is inserting into the database.But I can't do both in one click.
Hope someone can help me
regards
preeshma
Comment