ASP.NET (35) SQL (25) JAVASCRIPT (24) HTML (14) STYLE SHEET (6) ASP (4) SCRIPT (1)

Search me out HERE!!

Stop Further Execution in ASP.net (with C#)

Question : How to stop further execution in ASP.net in page_load, button_click, or any other method.

Answer:
return;

Just put return wherever you want to stop execution. The control will return back and your page will not be further executed.

No comments:

Post a Comment