Cancelling the events

  • Thread starter Thread starter Vik
  • Start date Start date
V

Vik

Is it possible to cancel all the events or a specific event programmatically
(for example, in a Page_Load event)? In other words, is it possible to stop
a page code execution?

Thank you.
 
Calling Response.End will cause no more server side code to execute. If you
do this in page_load, it will mean that the render event will not occur, and
the UI element you have defined won't be visible.
 
Back
Top