Home | No more Grid Layout in ASP.NET 2.0 Beta 2 | My first shot towards becoming an INETA Speaker | Another Free XAML Designer | Don't screw up your user group | Rolling With Longhorn Beta | Seminar on Master Pages and Themes in ASP.NET 2.0 | From Web Services to SOA and Everything in Between | The Pakistan Wiki | Game Over for Blu-ray, HD-DVD Deal | The Science of Your Brain on Games
Monday, July 25, 2005
Page.Request in Master Pages

I have been trying access Page.Request property in master pages and it didn't work at all. But after spending a few minutes at forums.asp.net I found my answer. There is a little trick involved in actually getting the request from the webform if you want to get value from a certain server control from the page. You actually have to go through the PageRequest Handler which looks something like this:

HttpApplication.PreRequestHandlerExecute
Brock Allen has got a solution with sample code to start your work with. ASP.NET Forums is a place to be. If you are working on any part of ASP.NET 2 and you are having troubles with some functions or controls then you should post the error in the forums. Remember ASP.NET team is watching the posts and they will not only answer your queries but will certainly improve the product before the final release.

posted by Zeeshan Muhammad @ 5:55 PM |