When will InitializeCulture be called

I found that many pages of my support site inherit a base page that overrides InitializeCulture in order to configure some globalization options.

Is this method called every time for any incoming request?

+3
source share
3 answers

According to http://msdn.microsoft.com/en-us/library/system.web.ui.page.initializeculture.aspx it will be called very early (for example, even before the controls are added earlier) in page initialization process. So yes, it will be called every time an aspx page is requested, which comes from your base page.

+4
source

Yes, if InitializeCulture is called on the base page, it will be called on every page that inherits this base page and for every incoming request.

:   HttpContext.Current.Response.Write( "intializing culture" ); . , , , .

+1

Yes, and for each BrowserLink Update , as I just found out. (Using Visual Studio 2015 and Google Chrome today.)

It annoys you, you can disable Browserlink .

0
source

Source: https://habr.com/ru/post/1739411/


All Articles