server.mappath vs. request.mappath

Discussion in 'ASP .Net' started by =?Utf-8?B?dHBhcmtzNjk=?=, Mar 10, 2007.

  1. Can anyone tell me the difference between server.mappath and request.mappath?
    Why would I use one vs. the other?
     
    =?Utf-8?B?dHBhcmtzNjk=?=, Mar 10, 2007
    #1
    1. Advertising

  2. tparks69 wrote:
    > Can anyone tell me the difference between server.mappath and request.mappath?
    > Why would I use one vs. the other?


    It doesn't matter. Server.MapPath calls Request.MapPath.

    --
    Göran Andersson
    _____
    http://www.guffa.com
     
    =?UTF-8?B?R8O2cmFuIEFuZGVyc3Nvbg==?=, Mar 11, 2007
    #2
    1. Advertising

  3. re:
    > Can anyone tell me the difference between server.mappath and request.mappath?


    None.

    re:
    > Why would I use one vs. the other?


    They perform exactly the same function.




    Juan T. Llibre, asp.net MVP
    asp.net faq : http://asp.net.do/faq/
    foros de asp.net, en español : http://asp.net.do/foros/
    ===================================
    "tparks69" <> wrote in message
    news:...
    > Can anyone tell me the difference between server.mappath and request.mappath?
    > Why would I use one vs. the other?
     
    Juan T. Llibre, Mar 11, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon
    Replies:
    5
    Views:
    11,185
    Scott M.
    Jan 17, 2010
  2. Peter Row
    Replies:
    0
    Views:
    469
    Peter Row
    Mar 1, 2004
  3. Replies:
    4
    Views:
    974
    Juan T. Llibre
    Oct 7, 2007
  4. AAaron123
    Replies:
    11
    Views:
    1,203
    AAaron123
    Sep 9, 2009
  5. Dan Sikorsky
    Replies:
    6
    Views:
    288
    Jeff Cochran
    Nov 20, 2003
Loading...

Share This Page