Re: img tag ../ ./ / ???
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Wed, 16 Nov 2005 14:23:11 GMT
Hi Paul,
Any progress on this issue? Does the suggestions in my last reply helps a
little? If there're anything else we can help, please feel free to post
here.
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| X-Tomcat-ID: 125310623
| References: <47B447D0-03A8-4501-B580-29E43629C1C2@xxxxxxxxxxxxx>
<uFe#$QH5FHA.3312@xxxxxxxxxxxxxxxxxxxx>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Wed, 09 Nov 2005 06:58:50 GMT
| Subject: Re: img tag ../ ./ / ???
| X-Tomcat-NG: microsoft.public.vsnet.ide
| Message-ID: <Xy#rSsP5FHA.2672@xxxxxxxxxxxxxxxxxxxxx>
| Newsgroups: microsoft.public.vsnet.ide
| Lines: 94
| Path: TK2MSFTNGXA02.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.vsnet.ide:17218
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi Paul,
|
| As for the html <img> tag's image source url problem, based on my local
| test, the following style URL won't work no matter in design-time IDE or
| runtime browser...
|
| "/Images/myimg.jpg"
|
| Actually, the "/Images/myimg.jpg" style url is an absolute path which
means
| the path is start from the IIS website (not asp.net site)'s root folder.
So
| if your application is directly under IIS site's root, named "MyApp" and
it
| contains an "Images" subfolder, the images in that folder's url should be:
|
| "/MyApp/Images/xxxx.jpg"
|
| That's why I mean the "/" began url will work only if we web application
is
| directly under IIS site(mostly this is not the case...)
|
| For ASP.NET Image Server Control, because it can use the "~/..."
| Application relative path which means start from the Applicaiton's root
| dir, so it will work well. However, since normal html elemetn won't been
| parsed by ASP.NET ruhtime so we can not directly use "~/...." path in
| static html. To workaround this, we can embeded asp.net code inline
within
| the html <img ..> tag so as to specify Application relative path, for
| example:
|
| <img src='<%= ResolveUrl("~/Images/rand.jpg") %>' />
|
| the out put at cilent side will be
|
| <img src="/ApplicationPath/Images/rand.jpg" />
|
| Also, as I've mentioned, the "/xxxx/xx" style Url means start from IIS
| site, if you don't mind that we embeded the application's full path in to
| the url string, you can also use this absolute style path.
|
| If there're anything unclear or any other questions, please feel free to
| post here. Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
| --------------------
| | From: "Richard Hein" <Auxon@xxxxxxxxxxxxxxx>
| | References: <47B447D0-03A8-4501-B580-29E43629C1C2@xxxxxxxxxxxxx>
| | Subject: Re: img tag ../ ./ / ???
| | Date: Tue, 8 Nov 2005 09:54:26 -0500
| | Lines: 37
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| | X-RFC2646: Format=Flowed; Original
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| | Message-ID: <uFe#$QH5FHA.3312@xxxxxxxxxxxxxxxxxxxx>
| | Newsgroups: microsoft.public.vsnet.ide
| | NNTP-Posting-Host: 206.191.62.18
| | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
| | Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.vsnet.ide:5948
| | X-Tomcat-NG: microsoft.public.vsnet.ide
| |
| | It's funny that we seem to have exactly the opposite problem. I can
see
| the
| | images while designing, but not browsing.
| |
| | - Richard Hein
| |
| | "Paul Hale" <PaulHale@xxxxxxxxxxxxxxxxx> wrote in message
| | news:47B447D0-03A8-4501-B580-29E43629C1C2@xxxxxxxxxxxxxxxx
| | > Hi,
| | >
| | > This is my set up...
| | >
| | > Root (.aspx file for non-authenticated users)
| | > Root\Members (.aspx files for authenticated users)
| | > Root\Images (images for entire web site)
| | >
| | > My MasterPage resides in Root.
| | >
| | > I would like my masterpage to contain html img tags (as opposed to
net
| | > img
| | > server controls). This is to save overhead on my server.
| | >
| | > I have set the "Src" property of the HTML image tags to
| | > "/Images/myimage.gif". This seems to work fine and all pages from
root
| and
| | > root/members display images fine when browsing with a broswer.
However,
| in
| | > my
| | > VS2005 designer mode the images dont show. I love the new MasterPages
| | > concept
| | > but would love them even more if I could get the images to display
when
| in
| | > design mode giving me a pretty close wysiwyg at design time.
| | >
| | > Please help! pretty please!
| | >
| | > Regards,
| | >
| | > Paul.
| |
| |
| |
|
|
.
- References:
- Re: img tag ../ ./ / ???
- From: Richard Hein
- Re: img tag ../ ./ / ???
- From: Steven Cheng[MSFT]
- Re: img tag ../ ./ / ???
- Prev by Date: Re: VS2005 Plugin with custom tooltip in c# code
- Next by Date: Re: Changing Dialog FOnt In 2005 IDE
- Previous by thread: Re: img tag ../ ./ / ???
- Next by thread: Re: img tag ../ ./ / ???
- Index(es):
Relevant Pages
|