473,399 Members | 3,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

possible to use <link type="image/gif" href=... ?

PJ6
Embedded javascript can be served from a DLL with an include that uses a
special URL generated by the Page.ClientScript.GetWebResourceUrl method at
runtime. For example:

<script
src="/DEV-WEB/WebResource.axd?d=Fzr7sc4IZAELIE4FCpgaNkpd1YgQqgig 1EfiFj9_b7U1&t=633202779231250800"type="text/javascript"></script>

.... so can style sheets:

<link rel="stylesheet" type="text/css"
href="/DEV-WEB/WebResource.axd?d=Fzr7sc4IZAELIE4FCpgaNj0haxMo-mjcdCmEaAxjaHk1&t=633202779231250800">

I want to also include embedded gifs in this way, like so:

<link type="image/gif"
href="/DEV-WEB/WebResource.axd?d=Fzr7sc4IZAELIE4FCpgaNkJ0ekvCovLI od-OmabkTCyUFnTKnVWSg0GFZIn388TN0&t=63320277923125080 0">

Only, I can't get this one to work. I'm not sure it can work. Is it possible
to "include" gif images?

Paul
Jul 17 '07 #1
3 2008
yes. be sure the mime type is correct when you call GetWebResourceUrl.

-- bruce (sqlwork.com)

PJ6 wrote:
Embedded javascript can be served from a DLL with an include that uses a
special URL generated by the Page.ClientScript.GetWebResourceUrl method at
runtime. For example:

<script
src="/DEV-WEB/WebResource.axd?d=Fzr7sc4IZAELIE4FCpgaNkpd1YgQqgig 1EfiFj9_b7U1&t=633202779231250800"type="text/javascript"></script>

... so can style sheets:

<link rel="stylesheet" type="text/css"
href="/DEV-WEB/WebResource.axd?d=Fzr7sc4IZAELIE4FCpgaNj0haxMo-mjcdCmEaAxjaHk1&t=633202779231250800">

I want to also include embedded gifs in this way, like so:

<link type="image/gif"
href="/DEV-WEB/WebResource.axd?d=Fzr7sc4IZAELIE4FCpgaNkJ0ekvCovLI od-OmabkTCyUFnTKnVWSg0GFZIn388TN0&t=63320277923125080 0">

Only, I can't get this one to work. I'm not sure it can work. Is it possible
to "include" gif images?

Paul

Jul 17 '07 #2
No. the only way to "include" an image in a web page is to display it with an
<img ../tag.
Peter
--
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
bogMetaFinder: http://www.blogmetafinder.com

"PJ6" wrote:
Embedded javascript can be served from a DLL with an include that uses a
special URL generated by the Page.ClientScript.GetWebResourceUrl method at
runtime. For example:

<script
src="/DEV-WEB/WebResource.axd?d=Fzr7sc4IZAELIE4FCpgaNkpd1YgQqgig 1EfiFj9_b7U1&t=633202779231250800"type="text/javascript"></script>

.... so can style sheets:

<link rel="stylesheet" type="text/css"
href="/DEV-WEB/WebResource.axd?d=Fzr7sc4IZAELIE4FCpgaNj0haxMo-mjcdCmEaAxjaHk1&t=633202779231250800">

I want to also include embedded gifs in this way, like so:

<link type="image/gif"
href="/DEV-WEB/WebResource.axd?d=Fzr7sc4IZAELIE4FCpgaNkJ0ekvCovLI od-OmabkTCyUFnTKnVWSg0GFZIn388TN0&t=63320277923125080 0">

Only, I can't get this one to work. I'm not sure it can work. Is it possible
to "include" gif images?

Paul
Jul 17 '07 #3
PJ6
I got it, I just needed to add a custom handler to serve embedded images
from my assembly.

http://msdn2.microsoft.com/en-us/library/ms973917.aspx

Paul

"PJ6" <no***@nowhere.netwrote in message
news:eM**************@TK2MSFTNGP04.phx.gbl...
Embedded javascript can be served from a DLL with an include that uses a
special URL generated by the Page.ClientScript.GetWebResourceUrl method at
runtime. For example:

<script
src="/DEV-WEB/WebResource.axd?d=Fzr7sc4IZAELIE4FCpgaNkpd1YgQqgig 1EfiFj9_b7U1&t=633202779231250800"type="text/javascript"></script>

... so can style sheets:

<link rel="stylesheet" type="text/css"
href="/DEV-WEB/WebResource.axd?d=Fzr7sc4IZAELIE4FCpgaNj0haxMo-mjcdCmEaAxjaHk1&t=633202779231250800">

I want to also include embedded gifs in this way, like so:

<link type="image/gif"
href="/DEV-WEB/WebResource.axd?d=Fzr7sc4IZAELIE4FCpgaNkJ0ekvCovLI od-OmabkTCyUFnTKnVWSg0GFZIn388TN0&t=63320277923125080 0">

Only, I can't get this one to work. I'm not sure it can work. Is it
possible to "include" gif images?

Paul

Jul 18 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: news | last post by:
I'm working with a CGI program that was using several standard buttons for input using <input type="submit" name="abuttonName" ... Now, I'm trying to replace the standard buttons with images...
6
by: Todd Peterson | last post by:
I'm encountering some wierd behavior with a <link> tag over an HTTPS connection, vs. an HTTP connection... In an ASP/HTML page on my website, I've add a <link rel="shortcut icon"...> in order to...
1
by: Dave | last post by:
Hi all, I was trying to make an image submit button with a rollover and discovered to my suprise that there is no way to access a form element of the "image" type. I tried specifying it by name...
22
by: David. E. Goble | last post by:
Hi All; I have a few of these; sigsImages="sigs/finished1.jpg" sigsImages="sigs/foghorn.jpg" lower I have;
17
by: Alan Silver | last post by:
Hello, I have a page which I am converting to use themes. The page has an HTML <input type="image"> element that is used to post to another page. I would like to replace this with a server...
2
by: Alan Silver | last post by:
Hello, If I have the following HTML... <input type="image" src="fred.gif"> .... is there a way to specify the image in CSS rather than in the HTML? TIA
3
by: =?Utf-8?B?V2lsbA==?= | last post by:
I have an image "button" which causes a postback. I handle the "click" with If Request.Form("btnBU7WD6_Submit.X") 0 Then... this works great. However, when a user double-clicks the image...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.