Monday, March 26, 2012

MapPath

I got confused with MapPath method. What is the benefit of using MapPath at all? Suppose I need to connect to my database db1.mdb which exists somewhere in my hard disk. Can I use Server.MapPath("db1.mdb") to return its directory? If not, what is the benefit of using MapPath? If I can only return its directory when db1.mdb exists in the current directory, why not use the relative path "." directly? Thank you for any helps!Hi,

Take a look @.Where Do All These Paths Lead?!?

HTH

0 comments:

Post a Comment