473,698 Members | 2,304 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WebResource with PerformSubstitu tion

I have a question regarding WebResource and in particular the
PerformSubstitu tion.

I see that the <%=WebResouce(â €¦)%can be used with a WebResource to perform
substitution on a resource to substitute the WebResourceUrl of other resource
referenced with the first (perhaps an image within an html file).

What I would like to be able to do is perform substitution on a script file
that contains <%=Control1.Cli entID%so that the clientID is output in the
script, however it appears that only other WebResource substitutions are
performed in this manner.

I currently have the script as a resource in a resx file that is embedded in
the controls assembly and replace the token with the correct clientID at the
PreRender stage (when registering the script), but thought it would be nice
to have the script available as a WebResource. Is there a way to achieve
this?

--
--------------------------
Shaun Venus

emailid: sunevnuahs
domain: hotmail.com
--------------------------
Aug 24 '06 #1
0 1349

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

Similar topics

8
2529
by: jojobar | last post by:
Okay, I am trying to do is to test the webresource in 2.0 1. I created a new project with assembly name (and default assembly name) "Office". 2. I added the following to the AssemblyInfo.cs file (present under the Properties folder of the project) 3. Now I created a file called test.js on the root folder of the project,
7
11016
by: awyl | last post by:
I tried to use validation in asp.net 2.0 with the following code. <%@ Page Language="c#" %> <html> <body> <form runat="server"> <asp:TextBox ID="abc" runat="server"> </asp:TextBox> <asp:RequiredFieldValidator ControlToValidate="abc" runat="server"></asp:RequiredFieldValidator>
1
1598
by: Brad | last post by:
Our .Net 2 web apps recently started getting CryptographicExceptions from WebResource.axd, and these almost always seem to be when the client is a web crawler...most notably googlebot (but a few times it is a client browser such as IE). I'm curious if anyone has some insight as to why this would be happening, if there is a way to resolve this. If it was just a web crawler I'd ask if we should even care. The error is - ...
8
8463
by: Mark Rae | last post by:
Hi, I'm developing an intranet for a client. On my development machine, I have created a virtual directory called, fairly unimaginatively, intranet. However, the client wants to deploy the app into its own site, rather than into a virtual directory, on the production server. Problem now is that the production site can't find WebResource.axd.
2
808
by: Håkan | last post by:
I have a problem with WebResource.axd Most of the requests to this site work just fine but every now and then I recive described below: Date: 2007-02-13 15:20 RawUrl=/WebResource.axd?d=2X-p-JOqLnRCeGYyigKrMg2&t=632988382868932500 Exception Type: System.Web.HttpException
1
2559
by: =?Utf-8?B?TWF5?= | last post by:
We are getting WebForm_DoPostBackWithOptions is not defined and other Java script errors related to WebResource.axd file. I narrowed down the problem and found out the cause but can't come up with a solution based on our application setup. Here is is how our web sites configured on IIS. Multiple web sites points to the same IP address and some of these web sites has sub-virtual directories, for example mystore.com is a web site that has...
2
2589
by: zb | last post by:
I have my code directory structured this way App App\Pages <- contains ASPX files App\Pages\Common App\Pages\Common\Controls <- has user controls App\Pages\Common\Controls\SupportingJS <- has .js script files located here THe .js file is marked as embedded resource in VS.
3
3882
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... We recently upgraded to the blowery.HttpCompress module for .Net 2.0 (I know, long time coming), and I've been investigating some exceptions that have ended up in our log as a result. I'm new to some of the modules involved, but the exception I've found is that when a request comes in for WebResource.axd with an Accept-Encoding: header of gzip or deflate, when the process gets handed to the blowery.HttpCompress module, the...
2
1975
by: Roberto Rasto | last post by:
I have an application that use Componentart WebUI calendar control. When I execute on local everything works fine. When I execute on server I get the javascript error: Expected ')' I compared the two html source and I saw then on local I see WebResource.axd?d=...... On server source I can't see it. Can you help me? Thanks.
0
8674
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
8603
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
9157
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
9027
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...
1
8895
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7725
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4369
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
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.