how are the events in ASp.NET web page executed
-
Hi All, can any one help in getting answer to this question. while browsing a ASP.NET application, a request is sent from browser to web server and web server processes the request and sents the required html to the browser which will be displayed in client's browser. But at the end there is only HTML that's there with client's browser. This HTML can't execute code in server. Then how does the events in ASP.NET execute
-
Hi All, can any one help in getting answer to this question. while browsing a ASP.NET application, a request is sent from browser to web server and web server processes the request and sents the required html to the browser which will be displayed in client's browser. But at the end there is only HTML that's there with client's browser. This HTML can't execute code in server. Then how does the events in ASP.NET execute
Viewstate. There's a block inside your HTML that contains encoded information, which maps to your controls on the page. Then when you click a button, an event is sent in the post back to the server. This information is then matched to the control tree ( which means that dynamically created controls can fail to have events b/c they are not in the tree soon enough ), and thus the framework can work out which control caused the postback, and if it has a method that needs to be called. I have a book here somewhere, it has a relatively harmless title like 'programing ASP.NET in C#', but in fact, it goes through the behind the scenes stuff really well, I'd recommend it, if I could find it to give you the title....
Christian Graus Driven to the arms of OSX by Vista.