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