473,396 Members | 1,678 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,396 software developers and data experts.

How to get embedded resource HTCs to be referenced in page?

Hi.

I have an interesting problem and don't know if there is a solution to this.

I have some webcontrols that are compiled into assemblies (not
usercontrols). Some of these controls rely on Javascript file which are
included as embedded resources where the HTML reference is being echoed by
using the Page.ClientScript.GetWebResourceUrl(...). This works fine.

Now I have an HTC that I want to include as an embedded resource and
referenced the same way. Can I do this? When I reference the HTC directly,
it works, but does not when I refernece a similar one that is an embedded
resource. I know that generated URL is correct because I can download the
HTC when I place the URL in the address bar. When I changed extension of
the physical file version of the HTC to something else, it did not load the
file. Is IE using the file extension to determine it is an HTC component?
If that is the same, then would that be why the WebResource URL is not
working, because proxy web page is not an HTC extension?

Apr 19 '07 #1
1 2107
Finally got it working after tinkering with the mime-type and such.

"Peter Rilling" <pe***@nospam.rilling.netwrote in message
news:OO****************@TK2MSFTNGP06.phx.gbl...
Hi.

I have an interesting problem and don't know if there is a solution to
this.

I have some webcontrols that are compiled into assemblies (not
usercontrols). Some of these controls rely on Javascript file which are
included as embedded resources where the HTML reference is being echoed by
using the Page.ClientScript.GetWebResourceUrl(...). This works fine.

Now I have an HTC that I want to include as an embedded resource and
referenced the same way. Can I do this? When I reference the HTC
directly, it works, but does not when I refernece a similar one that is an
embedded resource. I know that generated URL is correct because I can
download the HTC when I place the URL in the address bar. When I changed
extension of the physical file version of the HTC to something else, it
did not load the file. Is IE using the file extension to determine it is
an HTC component? If that is the same, then would that be why the
WebResource URL is not working, because proxy web page is not an HTC
extension?

Apr 19 '07 #2

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

Similar topics

3
by: Ron Vecchi | last post by:
I have a text file(.js) that holds a buch of java script code that is rendered in some web controls all part of a larger webcontrol library. The file is rather large. Would embedding this...
4
by: Jon Rista | last post by:
I have a project where I need to create a windows .exe by compiling code and linking in some resources. This program thats being generated is somewhat unconventional, and I'll explain how. I'm...
0
by: ATS | last post by:
HOWTO Make a UserControl deploy an embedded resource. Please help, I need to embed an EXE into a C# UserControl that is run from script in an HTML web page as such: <html> <object...
7
by: Dennis | last post by:
I have a .resx (xml) file that contains resources. I am trying to follow the example in MSDN for creating the resource Manager as follows: Dim myAssembly As System.Reflection.Assembly...
4
by: Jason Pettys | last post by:
In an ASP.NET project I am setting the content type of my .ascx and ..aspx files to Embedded Resource for a separate reason. When I do this they get embedded as "RootNamespace.Filename" but I...
2
by: Grant Harmeyer | last post by:
I have a project where I am required to embed a few images and CSS files in the assembly (v1.1) and read them out at runtime. I know that this can be done using an HttpHandler/.axd file (like the...
4
by: Jeremy Chapman | last post by:
I'b developing a web app to be viewed on various mobile devices, and I want the app to be as light as possible. I noticed that some of my pages have a link to the embedded resource webforms.js in...
2
Frinavale
by: Frinavale | last post by:
I am attempting to use embedded resources in an Ajax Enabled ASP.NET Web Application. I'm using Visual Studio 2008 and VB.NET server side code. The project is called "EmbeddedResources" with the...
6
by: LEM | last post by:
Hi, I use a Webbrowser component to display a page that has been generate dynamically from my C# program. This page contains some images that are displayed using HTML code like this: <img...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.