Thursday, December 27, 2012

System.Web is the namespace for HttpContext.Current

Dim context As HttpContext = HttpContext.Current

...didn't "want to take" just now so I replaced it with...

Dim context As HttpContext = Web.HttpContext.Current

...and referenced the System.Web namespace at the top of the file like so...

Imports System.Web

...and yes, this is VB script :(

No comments:

Post a Comment