-1

I'm using C# to try to create a set of web pages. I'm trying to use buttons on the master page to swap between forms, but no methods I've tried seem to be working. How would I go about swapping pages using buttons?

Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108
Matt
  • 23
  • 6
  • Swap between forms? In aspnet there is only one "form". Please update your question because now it is not clear at all. – VDWWD Feb 21 '18 at 15:43
  • I was under the understanding there is only one active form, but all of the pages are webforms. – Matt Feb 21 '18 at 15:45
  • If you put it like that it makes sense. But that makes your question not clearer... Add some code, describe the problem in details and provide an [MCVE](https://stackoverflow.com/help/mcve) – VDWWD Feb 21 '18 at 15:49
  • don't worry, I found further info and answered my own question below. Maybe this can make what I was asking more clear. – Matt Feb 21 '18 at 15:52

1 Answers1

0

Alright sorry for the lack of clarity in my question. I did some more investigating and found I could use this in the button event handler:

Response.Redirect("FormYouWantToSwitchTo.aspx");

This will move you to the "FormYouWantToSwitchTo" page

Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108
Matt
  • 23
  • 6