473,588 Members | 2,544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.ClientScri pt.GetWebResour ceUrl(...). 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 2113
Finally got it working after tinkering with the mime-type and such.

"Peter Rilling" <pe***@nospam.r illing.netwrote in message
news:OO******** ********@TK2MSF TNGP06.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.ClientScri pt.GetWebResour ceUrl(...). 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
22641
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 resouce in the application be relevant in this situation. I know I can chage the build type to embedded resource but really dont know what this does. Besides that it embeds it in the assembly ;-). I'm pretty quick. How can I read the text file once...
4
5876
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 generating a very simple installer app that embeds referenced .dll files inside it, which are extracted and referenced when the installer app is executed. This works great when the installer app is built with Visual Studio .NET, but it does not work...
0
1627
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 id=objTest
7
3286
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 myAssembly = Me.GetType.Assembly Dim myManager As New _ System.Resources.ResourceManager("ResourceNamespace.myResources", _ myAssembly
4
4400
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 would like them to be embedded as "RootNamespace.Folder.Filename". I see that the .resources files are embedded with the containing folder information in the namespace, and I think c# projects work this way, too. Is there any way (a vbc command...
2
1407
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 one used for FreeTextBox http://www.freetextbox.com), but I've never tried this before. Does anyone have any sample code for this? I know they've made this much easier in 2.0. -- Grant Harmeyer
4
2859
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 the rendered page. Is this javascript required, and how can I turn it off?
2
2409
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 namespace "EmbeddedResources" My resources are not included when the content is rendered in the browser. I have marked my JavaScript resource as Embedded. I am able to retrieve the path to the resource from the WebResource.axd HTTP Handler during...
6
6476
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 src="person.gif"> person.gif is an image that is located in my bin folder.
0
7929
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7860
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8222
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8354
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8223
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5726
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5398
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3847
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
1195
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.