How do I get a usercontrol to get the page to stop?
I want to write a usercontrol that when certain conditions are true, it tells the page to stop generating content and flush.
How do I do that?
If I use the Response Object, it Flushes and Ends before any content is rendered.
Example (really abstract)
Page 1 has an image, then, the usercontrol, then six more images.
If condition is true, then I want Page1 to render the 1st image, the usercontrol, and all the other images after that.
If condition is false, then I want Page1 to render the first image, then the usercontrol and stop.
Any ideas?