Server.MapPath returns the physical file path that corresponds to the
specified virtual path whereas Request.MapPath maps the specified
virtual path to a physical path. Assuming that a file named Hello.aspx
resides in C:\Inetpub\wwwr oot\MyFolder, the output of both
Response.Write( Server.MapPath( "Hello.aspx "))
&
Response.Write( Request.MapPath ("Hello.aspx "))
is C:\Inetpub\wwwr oot\MyFolder\He llo.aspx. So what's the difference
between Server.MapPath & Request.MapPath ?
Thanks
specified virtual path whereas Request.MapPath maps the specified
virtual path to a physical path. Assuming that a file named Hello.aspx
resides in C:\Inetpub\wwwr oot\MyFolder, the output of both
Response.Write( Server.MapPath( "Hello.aspx "))
&
Response.Write( Request.MapPath ("Hello.aspx "))
is C:\Inetpub\wwwr oot\MyFolder\He llo.aspx. So what's the difference
between Server.MapPath & Request.MapPath ?
Thanks
Comment