Search code examples
c#static-functions

Problem accessing Server variable in static function in C#


Im unable to access server/response variable in my static function. Can i access them in static function or should i include some namespaces


Solution

  • System.Web.HttpContext.Current object includes current Server, Response, Request etc instances.