Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:652720
More Search Options
RSS Available
Matching Posts
Re: How to combine own scripts using the ToolkitScriptManager?
I wanted to make sure I wasn't missing anything obvious, so I checked with some of the ASP.NET AJAX experts. Mike Harder came back quickly with a great suggestion - I tried it and it works. Instead of the RegisterClientScriptResource line you were using unsuccessfully, I find that the following line worked perfectly in my sample project: ToolkitScriptManager .GetCurrent(Page).Scripts.Add( new ScriptReference ( "ClassLibrary1.JScript2.js" , "ClassLibrary1" ));
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
David Anson
on 4/17/2008
Re: How to combine own scripts using the ToolkitScriptManager?
I've had a look and it appears that ScriptManager.RegisterClientScriptResource doesn't add things to the same list that is used by extenders with ClientScriptResourceAttribute and that's why it's not working as you'd like. My suggestion would be to create a trivial extender whose only purpose is to include the script you want. Then you can just add an instance of that extender to your page and the script will automatically be combined as we've discussed. Here's a trivial
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
David Anson
on 4/16/2008
Re: How to combine own scripts using the ToolkitScriptManager?
Three quick suggestions: 1. Double-check that the fully qualified script name you're passing to WebResource is the actual name of the script in the DLL. Reflector can help with this and it's common for the actual path to be different than expected - usually because the build process inserts an additional namespace. 2. Add ClientScriptResourceAttribute to your Extender instead of calling RegisterClientScriptResource directly. This is what all the Toolkit controls do. 3. Set a breakpoint on
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
David Anson
on 4/15/2008
Re: MaskedEditValidator not working in MultiView
Still works for me, sorry. Your best bet at this point may be to debug the error a bit to see what's going wrong, where, and why. If you don't like script debugging with VS 2005 and VS 2008's not an option, consider Firefox+Firebug since that combination can be pretty powerful.
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
David Anson
on 12/14/2007
Re: MaskedEditValidator not working in MultiView
The page above does not reproduce the problem you describe for me with ASP.NET AJAX 1.0 and Toolkit version 1.0.11119 and IE7 or Firefox. Starting from A1, I switch to A2 without error. When trying to switch back, I the red text "invalid" is displayed and switching is not allowed. There are no script errors in either browsers. Maybe verify that you're on the right versions of everything?
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
David Anson
on 12/13/2007
Re: TextBox, TextBoxWatermarkExtender, RequiredFieldValidator - don't work well together?
Yes, a small repro project would be helpful! I'm specifically interested in the scenario where InitialValue is not set. Thanks!
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
David Anson
on 11/16/2007
Re: I'm getting the access denied error in an iframe and have read stuff and i still can't get it to work! PLEASE HELP ME
Have you made the corresponding change to your ASP.NET AJAX installation? (It's discussed by a blog post linked to by the one above.)
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
David Anson
on 11/6/2007
Re: TextBox, TextBoxWatermarkExtender, RequiredFieldValidator - don't work well together?
I can't exactly reproduce the behavior you're seeing, but I suspect the problem may stem from the use of RequiredFieldValidator/InitialValue. The initial value of the TextBox is either empty or the results of the binding to Name, but probably NOT the watermark text. In my testing, having the InitialValue present yielded some unusual behavior (though expected once I thought about it). Please try removing that property to see if it helps your scenario. Thanks!
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
David Anson
on 10/29/2007
Re: tabContainer's OnActiveTabChanged fires twice after changing tabs
Raymond, please feel free to open a work item if you believe this to be a bug in the Toolkit. Thanks for the help!
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
David Anson
on 7/20/2007
Re: AJAX Controls Problem..?
http://ajax.asp.net/ajaxtoolkit/Walkthrough/Setup.aspx
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
David Anson
on 7/20/2007
Page 1 of 185 (1841 items) 1
2
3
4
5
Next >
...
Last »
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
ASP.NET:
T4MVC now has a real home and a dedicated forum!
TechNet Edge:
Windows Server 2008 R2 : New Power Management Features
ASP.NET:
Web Deployment Painkillers: VS 2010 & MS Deploy
WindowsClient:
Application Accessibility Testing
WindowsClient:
Prism & WCF RIA Services
Channel 9:
Sharepoint 2010 and Claims-Based Identity
WindowsClient:
IRhetoric Ported To BlogEngine.NET
WindowsClient:
PDC Recap and More
Channel 9:
Reactive Extensions API in depth: Primitives
WindowsClient:
New WPF Features: MultiTouch
WindowsClient:
codeplex.com/testapi v 0.4 available
Channel 9:
The Visual Studio Documentary - Alan Cooper, the Father of Visual Basic
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online