Prev: ASP.NET Session does not expire
Next: ASP.net vs PHP
From: TS on 9 Mar 2010 17:04 I have noticed that after switching to 3.5 from 2.0 after a server.transfer, the page lifecycle of the new page run but when its done, it comes back to the original page to finish the page lifecycle there. this causes errors in my web application. is there a change in 3.5 that causes this issue? page_load of 1st page, => server.transfer => page_load/Render etc of 2nd page => returns to 1st page to finish page_load and rest of events. in 2.0, the executing code never returned to 1st page. We have exception logging that is now getting filled up with these exceptions that it didn't used to do in 2.0. thanks
From: Vince Xu [MSFT] on 10 Mar 2010 02:15 Hi, Server.Transfer will go to the new page and never return back to the orignal page whatever in Framework 3.5 or 2.0. But Server.Excute will. You can set a breakpoint to check what it does. Please check this link about it: http://www.dotnet-guide.com/serverexecute-servertransfer.html -- Sincerely, Vince Xu Microsoft Online Support ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications. MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 2 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx ==================================================
From: TS on 10 Mar 2010 12:47 it is a server.transfer. it is called from the page's base class (all pages share same base class). I have stepped thru the code and verified it happens like I said in 3.5: page_load of 1st page => server.transfer called in page_load => page lifecycle events run in 2nd page => returns to 1st page to line directly after server.transfer to finish page_load and rest page lifecycle events. in 2.0: page_load of 1st page => server.transfer called in page_load => page lifecycle events run in 2nd page and ends. The line after server.transfer is never run. please advise "Vince Xu [MSFT]" <v-vincex(a)online.microsoft.com> wrote in message news:C0TTLGCwKHA.2536(a)TK2MSFTNGHUB02.phx.gbl... > Hi, > > Server.Transfer will go to the new page and never return back to the > orignal page whatever in Framework 3.5 or 2.0. > But Server.Excute will. > You can set a breakpoint to check what it does. > Please check this link about it: > http://www.dotnet-guide.com/serverexecute-servertransfer.html > > > -- > Sincerely, > > Vince Xu > > Microsoft Online Support > > > ================================================== > Get notification to my posts through email? Please refer to > http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications. > > MSDN Managed Newsgroup support offering is for non-urgent issues where an > initial response from the community or a Microsoft Support Engineer within > 2 business day is acceptable. Please note that each follow up response may > take approximately 2 business days as the support professional working > with > you may need further investigation to reach the most efficient resolution. > The offering is not appropriate for situations that require urgent, > real-time or phone-based interactions. Issues of this nature are best > handled working with a dedicated Microsoft Support Engineer by contacting > Microsoft Customer Support Services (CSS) at > http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx > ================================================== >
From: Vince Xu [MSFT] on 11 Mar 2010 00:05 Can you send me your demo project? v-vincex(a)microsoft.com -- Regards, Vince, Microsoft Online Support
From: Vince Xu [MSFT] on 11 Mar 2010 00:07
Did you use VS 2008? or VWD? -- Regards, Vince |