문제

I want to know when the DefaultModelBinder is invoked within the ASP.NET Pipeline?

Background: I want to find an approriate place where I can set the cultures of the current thread.

도움이 되었습니까?

해결책

Please check if this stackoverflow questions helps you.

Abstract from the answers above - There are multiple events which execute before model binding in asp.net mvc, where you can set the culture for current request.

  1. Application Request events like - "PreRequestHandlerExecute".
  2. Extend the Controller base class and override the 'OnActionExecuting'
  3. Create altogether new HttpModule.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top