More woes ResolveUrl

L

Lloyd Sheen

I have a weird (at least to those who think the IDE should work) problem.

I have in code the following:

psFiles = Page.ResolveUrl("/Pictures")
This resolves to /Pictures in the code

In command window enter the following:
?Page.ResolveUrl("/Pictures")
This resolves to G:/MyPictures"

Do I have to give all users the IDE so they can resolve this correctly.

??????
Lloyd Sheen
 
N

Natty Gur

Hi,


ResolveUrl return absolute UTL path from relative one (e.g. ~/Pictures
should be WebApplicationX/Pictures ). ResolveUrl doesn’t return physical
path but absolute URL. By the way I got the same results in Immediate
window and ASP.NET code.


Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top