Skip to Content
Introducing .NET 4.0: with Visual Studio 2010
book

Introducing .NET 4.0: with Visual Studio 2010

by Alex Mackey
February 2010
Beginner content levelBeginner
400 pages
11h 13m
English
Apress
Content preview from Introducing .NET 4.0: with Visual Studio 2010

11.3. AJAX Toolkit Integration

The AJAX toolkit controls are now combined into the AJAX libraries. Apart from easier deployment, this feature also allows you to programmatically create them. The following example shows how to add the color picker control from the toolkit to a text box programmatically (note how it wasn't necessary to reference any toolkit assemblies):

<script src="./Scripts/Start.js" type="text/javascript"></script>
<script src="./Scripts/Extended/ExtendedControls.js" type="text/javascript" type="text/javascript"></script>

<script>
   Sys.require(Sys.components.colorPicker, function() {
   Sys.create.colorPicker("#txtChooseColor");
   });
</script>

<input id="txtChooseColor" />
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASP.NET 3.5 For Dummies®

ASP.NET 3.5 For Dummies®

Ken Cox
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek

Publisher Resources

ISBN: 9781430224556Purchase book