keyongtech


  keyongtech > dotnet.framework.aspnet.* > dotnet.framework.aspnet.buildingcontrols > 07/2006

 #1  
07-05-06, 04:39 PM
roger31
Hello - i have created a simple composite control with drop down list
displaying the US States. I have also a Javascript (County.js) file embedded
inside the control. The Javascript file has an array of County Names. IN
another Javascript i have a function that will display a list of county names
for the selected state. I am using the following to register the javascript
rstype = resource type; rsname = fully qualified resource name including the
namespace
csm.RegisterClientScriptResource(rstype, rsname).

After i browse to the page i am able to download the Javascript file by
pasting the WebResource.axd?......... into the Url but my "OnChange" event
for the Drop downlist does not fire. I am not sure why the Onchange is
failing.

Here is how the onchange is wired on the serverside

SelectCtrl.Attributes.Add("onchange", "'<%=
WebResource(AddressCtrl.ChangeImage();) %>'");

any help is appreciated. thanks
 #2  
07-06-06, 10:01 PM
CaffieneRush
Are you using the select html control or the dropdownlist web server
control within the composite control?

roger31 wrote:
[..]
Similar Threads
what is Webresource.axd?

Hi asp.net 3.5 In my webpage (default.aspx) I see reference to 2...

Where WebResource come from?

In my css file I have something like this... background:url(<%=WebResource("AjaxControlToolkit.Tabs.tab-line.gif")%>) repeat-x bottom; Where does it look exactly in order to...

Webresource.axd

I'm a newbie with this product. When I publish my site to the server everything runs perfectly except some of my ASP pages and on those pages specifically those with items...

WebResource CryptographicException

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...

WebResource.axd Errors

I have a newly released web site that is throwing a few errors regarding the WebResource.asxd handler. I am not using this in any way for my own purposes, it is just...


All times are GMT. The time now is 04:11 AM. | Privacy Policy