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?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Sep 19, 2014, 6:17 AM
If you don't handle those events, then they are simply ignored - nothing happens and no exception is thrown.
samantaPosted Sep 19, 2014, 6:47 AM
samantaPosted Sep 19, 2014, 1:18 AM
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?
VulpesPosted Sep 18, 2014, 9:36 AM
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.