Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > More woes ResolveUrl

Reply
Thread Tools

More woes ResolveUrl

 
 
Lloyd Sheen
Guest
Posts: n/a
 
      01-24-2004
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


 
Reply With Quote
 
 
 
 
Natty Gur
Guest
Posts: n/a
 
      01-26-2004
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


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ResolveUrl in a static helper method Lloyd Dupont ASP .Net 5 10-31-2007 10:37 AM
ResolveUrl vs ~ bryanp10@hotmail.com ASP .Net 3 06-24-2007 03:41 AM
Difference between Server.mappath and Page.resolveURL SandyIsCool ASP .Net 4 12-15-2006 01:59 PM
small doubt regarding ResolveURL SandyIsCool ASP .Net 2 12-15-2006 11:58 AM
alternative to ResolveUrl() Lloyd Dupont ASP .Net 0 01-29-2006 08:24 AM



Advertisments