Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

VB.NET changing the form action

  • 14-03-2007 09:30AM
    #1
    Registered Users, Registered Users 2 Posts: 500 ✭✭✭


    Hi folks,

    I am a bit of a newbie to vb.net - running visual studio 2005.

    My master page contains a form. Now my contetn placeholder within this contains all my pages.

    1st page i want a submit button on the page. and the onsubmit value to redirect me to my 2nd page.
    now i want to change the "action" for the form when it gets to this page.

    Is there any way to do this?

    I know i can using Javascript but i want to stay away from that for the time being.
    At the moment i use a response.redirect - but i have a feeling this is entirely wrong way to go about it.


Comments

  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    I would say Response.Redirect would be your first port of call. You could set the PostBackURL property of the submit button on the first page but that will require JavaScript and you've said you want to avoid it. Plus by the sounds of things navigating may not be the only thing you want the submit button to do.


Advertisement