Skip to content

Instantly share code, notes, and snippets.

@phpleo
Created October 14, 2010 22:36
Show Gist options
  • Select an option

  • Save phpleo/627224 to your computer and use it in GitHub Desktop.

Select an option

Save phpleo/627224 to your computer and use it in GitHub Desktop.
Obtener conexto en asp mvc
' http://stackoverflow.com/questions/223317/httpcontext-on-instances-of-controllers-are-null-in-asp-net-mvc
Dim context As HttpContextWrapper = New HttpContextWrapper(Web.HttpContext.Current)
Return CType(context, HttpContextBase)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment