Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > tilde-replacement changes from framework 1.0 to 1.1 ????

Thread Tools

tilde-replacement changes from framework 1.0 to 1.1 ????

CHristian Niss
Posts: n/a
hi there,

in a lot of user controls we are using "~" in server tags to reference objects
like images <img src="~/images/something.gif" runat="server" />.

with framework 1.0 the tilde got replaced by "/virtualdir" for example. now in
framework 1.1 tilde is replaced with relative paths like "../../"

this makes a lot of trouble, especially when you dynamically load user controls
to an aspx-page. it seems that this relative "../.."-path is dependent on
the location of the user control and not dependent on the location of the

in our case this causes a lot of trouble with "not found images", when we
install our software in a virtual directory. this "../.."-path goes up one
directory-level too much.

our server: localhost
our virtual-dir: localhost/myproject
aspx-file location: myproject/script.aspx
ascx-file location: myproject/controls/control1.ascx

in control1.ascx we use <img src="~/images/something.gif" runat="server" />

with framework 1.0 src was replaced to "/myproject/images/something.gif"
with framework 1.1 src is replaced to "../images/something.gif"

is there any way to force tilde-replacement into using absolute paths
instead of relative paths ???

thanks a lot
Reply With Quote

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
IIS automatically changes running framework version Diego Serrano ASP .Net 1 08-25-2007 10:02 PM
microsoft.public.dotnet.faqs,microsoft.public.dotnet.framework,microsoft.public.dotnet.framework.windowsforms,microsoft.public.dotnet.general,microsoft.public.dotnet.languages.vb Charles A. Lackman ASP .Net 1 12-08-2004 07:08 PM
Error: Failed to start monitoring changes - Framework 1.1 =?Utf-8?B?VGltIEQ=?= ASP .Net 9 11-12-2004 03:56 PM
COMInterop does not work in Framework 1.1 without Framework 1.0 Anatoly Volodko ASP .Net 1 08-14-2003 08:11 PM
Re: FormsAuthentication - Changes in .Net Framework 1.1!? fadi ASP .Net 1 07-01-2003 02:45 PM