Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9148473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:16:57+00:00 2026-06-17T11:16:57+00:00

<asp:Button runat=server ID=Button1 Text=Create OnClick=Create_Click CssClass=FadeOutOnEdit/> This runs the Create_Click method in the aspx.cs

  • 0
<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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:16:58+00:00Added an answer on June 17, 2026 at 11:16 am

    If you don’t need to represent the destination URL in markup, why not use Server.Transfer or Response.Redirect in the code for Create_Click?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<asp:TextBox ID=TextBox1 runat=server></asp:TextBox> <asp:Button ID=Button1 runat=server UseSubmitBehavior=false OnClick=Button1_Click OnClientClick=this.disabled = true; this.value = 'Submitting...';
inside of while loop, i've used <asp:Button ID=<%=objReader.Item(0)%> OnClick=btn_Click runat=server CssClass=submit_button Text=Delete /> Sub
I want to trigger on click of a button this: <asp:Button runat=server ID=submit Text=Submit
HTML <body> <form id=form1 runat=server> <asp:Button runat=server ID=a OnClick=a_Click Text=apd/> </form> </body> Code protected
<body> <form id=form1 runat=server> <div> <asp:Button ID=Button1 runat=server Text=Button /> <div id=div1>Click here</div> </div>
When I would be able to write : <asp:TextBox id=Input runat=server/> <asp:Button onclick=<% Input.Text='my
This is the Design::: <asp:Panel ID=Panel1 runat=server> </asp:Panel> <asp:Button ID=Button2 runat=server Text=Button /> <asp:Label
Consider the following: <form runat=server> <div> <asp:TextBox runat=server ID=tb1 /> <asp:Button runat=server ID=b1 OnClick=b1_Click
In the ASPX <asp:Table ID=superTable runat=server Width=100%> <%--populate me on the fly!--%> </asp:Table> <asp:Button
<asp:UpdatePanel ID=uppnl_Select_File_Format runat=server UpdateMode=Conditional> <ContentTemplate> <div class=button-bg-2> <div class=button-text-2> <asp:LinkButton ID=btnCreate ValidationGroup=CreateVersion runat=server OnClick=btn_Create_OnClick

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.