What happens if Page_Load method is removed in aspx.cs page?
How page get loaded without handling event like Init,load, UnLoad in my aspx.cs page?
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Sep 19, 2014, 2:17 AM EDT
If you don't handle those events, then they are simply ignored - nothing happens and no exception is thrown.
VulpesRank #55 · 29.2K reputationPosted Sep 18, 2014, 5:36 AM EDT
It's just a method which handles the Page's Load event and, whilst you'd usually have code in there (which is why VS adds it by default), it's not essential.
samantaRank #3,157 · 454 reputationPosted Sep 18, 2014, 9:18 PM EDT
which means we are handling Page's Load event in page.
if we not going to handle this event, who is going to handle this event?
why its not throwing an error?
samantaRank #3,157 · 454 reputationPosted Sep 19, 2014, 2:47 AM EDT