0

After a page loads a user control, is there a way to remove the user control and replace it with a different one, without doing a browser refresh?

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Spockrates
  • 75
  • 1
  • 5
  • 14

1 Answers1

0

If you do it in an event before ViewState is finalized. Set up both in codebehind, use a placeholder in the page, and swap out the controls accordingly...look up the page lifecycle events - I think you need to do it in an event before Load executes because by then ViewState is established.

Tim
  • 4,051
  • 10
  • 36
  • 60