hello.
well, this isn't a javascript error. you're getting this error on the server side. can you give more details on what makes this happen?
All I know is that when I use my extender, I get this error. Stepping through the extender code doesn't show me any errors. This error doesn't show in IE, I just get Unrecognized tag attribute : ce:CEAutoCompleteBehavior. The type is added the same way as when it successfully worked as a standalone behavior.
How can I debug this? I'm running my app in debug mode, I have breakpoints all over the place in both clientside and serverside code, and vs gives me nothing. I had no idea what was happening until I ran fiddler. I'm at a loss to figure out how I can figure out what the problem is.
hello.
well, it looks like your javascript code isn't being loaded...where is ce:autocompleteextender placed?in xml-script? btw, if you put the webresource.axd?blablalba link you've shown in the previous post on the browser's address field (append it to the path to your app)? do you get a download file?
How did this thread get marked as answered - that wasn't me. ce:autocompleteextender is an atlas control that i wrote using the vs template. I reference the dll and register the assembly on my website page. Then I use declarative markup to include the <ce:autocompleteextender> and give the textbox as its properties. Intellisense is correctly picking up the extender and its properties. No I don't get a downloadable file, that's the problem, but I don't know why it's not sending it. The js file is marked as an embedded resource, I verified that.
hello again.
besides being embedded, you must also add the webresourceattribute to the dll so that it can get the jscript file. another thing you should do is make sure that your web app is configured to use asp.net 2.0.
The WebResourceAttribute is present. If I change the filename, listed there, when I try and access the file, I get "The resource cannot be found." instead of the above error. All websites in IIS are using .net 2.0.
This problem exists even when I use a new AtlasControlExtender template with no modifications to the files generated.
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.1
Date: Tue, 11 Jul 2006 21:18:55 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Length: 0
It's not an exception, but it still doesn't work. The file is being found, because if I change to web resource attribute to a non-existant file, I get the resource can't be found. So if it can find the resource, why am I getting 0 bytes?!
I know that the file itself is good. If I use ScriptPath and point to the very same file used in the dll, it works. Only when I try and use it via webresource does it break.
No comments:
Post a Comment