Re: Difference between Server.mappath and Page.resolveURL

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks a lot Mark. That really helped this novice.
Thanks again.
Sandy

Mark Fitzpatrick wrote:
The ResolveUrl method is designed to create a friendly URL for a given
resource. For example, when you have a control that references an image,
you'll want the image to be referenced correctly when that control is placed
within a page. The ResolveUrl will create the url in a friendly way that is
relative to the page instead of relative to the control.

The Server.MapPath is used to find the file system path for a given
resource. For example: Server.MapPath("web.config") may give something like
c:\inetpub\wwwroot\web.config. It's used when you're trying to work with
files from the server's file system, such as saving uploaded files, creating
files on the server, referencing file-based databases.


--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006


"SandyIsCool" <sandeep.anantha@xxxxxxxxx> wrote in message
news:1166100443.510284.106830@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

Can any one let me know what is difference between Server.mappath and
Page.resolveURL and what are the situations we use them.

Thanks,
Sandy


.



Relevant Pages

  • Re: Difference between Server.mappath and Page.resolveURL
    ... The ResolveUrl method is designed to create a friendly URL for a given ... resource. ... For example, when you have a control that references an image, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Difference between Server.mappath and Page.resolveURL
    ... so an IMG can not understand the virual root tilde and therefore ... when you have a control that references an ... you'll want the image to be referenced correctly when that control is ... The Server.MapPath is used to find the file system path for a given ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Built in function errors.
    ... I have yet to work with 2007 and certainly not in a mixed environment. ... I've replaced UCase intrinsic function located in the Control ... ways of trying to match all the libraries but so far nothing has worked 100%. ... It is probably that these issues are not related to references. ...
    (microsoft.public.access.modulesdaovba)
  • RE: Built in function errors.
    ... I've replaced UCase intrinsic function located in the Control ... ways of trying to match all the libraries but so far nothing has worked 100%. ... It is probably that these issues are not related to references. ... updating the software on the client computer and reselecting all ...
    (microsoft.public.access.modulesdaovba)
  • Re: Load Object
    ... non-standard control, you will have to install that control on each machine ... Upchucking the missing references doesn't necessariliy fix anything. ... A basic, no frills workbook requires four references: VBA, Excel, Office, ...
    (microsoft.public.excel.programming)