Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

asp:button onClick='navigate + run method'

$
0
0
Hi all,

<asp:Button runat="server" ID="Button1" Text="Create" onclick="Create_Click" CssClass="FadeOutOnEdit"/>

This runs the Create_Click method in the aspx.cs page.(Which adds data to the DB)

I would like to run this method and also navigate to a different page when the btn is clicked.
I have been trying:

NavigateUrl="~/Invoices/List.aspx"
ContinueDestinationPageUrl="~/Default.aspx"

any suggestions
Thank ye

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>