G
Guest
Is there a way to instantiate a page object in code and redirect the response to it? I know that this is how the actual ASP.NET engine ultimately does it under the covers. However, is this available to the developer? I want to be able to use page inheritance to create a centralized page controler without the need to build .aspx files for every page (since they would be pretty much empty shells anyway).
Here is a sample of what I "want" to do. However, the Response.Redirect() method currently only takes a string argument and does not accept a page object reference
MyPage myPage = new MyPage()
Response.Redirect(myPage); <---- this does not work. I wish that it would
Any ideas
Thanks
Matt
Here is a sample of what I "want" to do. However, the Response.Redirect() method currently only takes a string argument and does not accept a page object reference
MyPage myPage = new MyPage()
Response.Redirect(myPage); <---- this does not work. I wish that it would
Any ideas
Thanks
Matt