loads of useful information, examples and tutorials pertaining to web development utilizing asp.net, c#, vb, css, xhtml, javascript, sql, xml, ajax and everything else...

 



Advertise Here
C-Sharpener.com - Programming is Easy!  Learn Asp.Net & C# in just days, Guaranteed!

using Server.MapPath() in an Generic Handler (.ashx)

by naspinski 7/22/2010 8:50:00 AM

if you need to get a local file path in your ashx

Instead of using:
Server.MapPath()

Simply use:
System.Web.HttpContext.Current.Server.MapPath()

Currently rated 5.0 by 3 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

asp.net | c#

Related posts


Comments are closed