DucDigital
DucDigital

Reputation: 4622

Is there any way to pass Context into HtmlHelper extension?

Im working on my new Helper, which extended from HtmlHelper.

In my method, i need to call out data from Context. The context can be called from the View, but is there anyway i can just call it in HtmlHelper?

The application is writen in ASP.net MVC 2.0 RC2.

Thanks for your time. :)

Upvotes: 2

Views: 335

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038830

htmlHelper.ViewContext.HttpContext

Upvotes: 2

Related Questions