Results 1 to 2 of 2

Thread: Server.MapPath

  1. #1
    Join Date
    Dec 1969

    Default Server.MapPath

    Hi All!<BR><BR>I have a problem reg "Server.MapPath"<BR><BR>Well i written a smal method (in .cs file) to retrieve all the images. In that i used "Server.MapPath". But when i try to compile it&#039;s giving an error saying that<BR><BR>"C:InetpubwwwrootWebApplication1clsMC. cs(117): The type or namespace name &#039;Server&#039; could not be found (are you missing a using directive or an assembly reference?)<BR>"<BR><BR>what should i do pls anybody given me some suggestion.<BR><BR>Thanks in advance.<BR><BR>Nag K.

  2. #2
    Join Date
    Dec 1969

    Default RE: Server.MapPath

    If you are not in an ASPX or the code behind of the ASPX page, you have to say what context to use<BR><BR>HttpContext.Current.Server.MapPath(blah blah blah)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts