Re: Difference between Server.mappath and Page.resolveURL
- From: "SandyIsCool" <sandeep.anantha@xxxxxxxxx>
- Date: 14 Dec 2006 11:58:41 -0800
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
.
- Follow-Ups:
- Re: Difference between Server.mappath and Page.resolveURL
- From: SandyIsCool
- Re: Difference between Server.mappath and Page.resolveURL
- References:
- Difference between Server.mappath and Page.resolveURL
- From: SandyIsCool
- Re: Difference between Server.mappath and Page.resolveURL
- From: Mark Fitzpatrick
- Difference between Server.mappath and Page.resolveURL
- Prev by Date: Re: Authentication problem continued
- Next by Date: Re: Authentication problem continued
- Previous by thread: Re: Difference between Server.mappath and Page.resolveURL
- Next by thread: Re: Difference between Server.mappath and Page.resolveURL
- Index(es):
Relevant Pages
|