• Home
  • New Entries
  • Popular Entries
  • Submit a Story
  • About

ASP.NET AJAX Library Beta in Visual Studio ...

Overview

The ASP.NET AJAX Library is a JavaScript library which enables the developer to build highly interactive Ajax applications. Using ASP.NET Ajax client controls we can take the advantage of building database-driven web applications. This post explains how to add these controls to Visual Studio toolbox and explore the beta features.

The ASP.NET AJAX Library is compatible with Visual Studio 2008 and Visual Studio 2010 beta when targeting ASP.NET 3.5.

Using the ASP.NET AJAX Library Beta Scripts

There are two ways that we can use AJAX Library scripts in a  web applications.

   1. Adding controls from AJAX library to Visual Studio Toolbox.
   2. We can instantiate ASP.NET AJAX Controls  in JavaScript Code.

Adding ASP.NET AJAX Library Controls to Visual Studio Toolbox

To add the controls to visual studio toolbox, follow these steps

1. Create a ASP.NET Web Site project or Web application project

2. Open the default page in visual studio designer.

3. Right click the Toolbox and then click Add Tab. Name the new tab ASP.NET Ajax Library.



4. Right click beneath the ASP.NET AJAX Library Tab and then click on chooseitems option.

5. Browse the downloaded path and then go to Webforms folder in it, choose AjaxControlToolkit.dll assembly and then say OK.

you can download ASP.NET AJAX library beta here




6. After adding the above dll you can see the controls as shown below




Adding AJAX library controls using Java Script

1. Copy the script folder from downloaded location to your web application.

2. Add the following script element to your .aspx page

<script src="../Scripts/Start.js"

type="text/javascript"></script>

3. After adding a reference to the start.js script, we can create and attach an ASP.NET AJAX control to a DOM element by using System.create method.

4. Following is the example to add a control using Java Script

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Simple Calendar</title>
    <link href="../Scripts/Extended/Calendar/Calendar.css"

     rel="stylesheet" type="text/css" />

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

   1: 


   2:     <script src="../Scripts/Extended/ExtendedControls.debug.js"

           type="text/javascript">


   1: </script>


   2:     <script type="text/javascript">


   3: 


   4:         Sys.require(Sys.components.calendar, function() {


   5:             Sys.create.calendar("#travelDate");


   6:         });


   7:    


   8:    


</script>
</head>
<body>

<input id="travelDate" />

</body>
</html>

 Original Source:
http://www.techbubbles.com/aspnet/asp-net-ajax-library-beta-in-visual-studio/

AddThis Social Bookmark Button

Posted at 09:33:18 am | Permalink | Posted in .Net  

Related Stuff

  • MooV: Using cutting edge Video phones and Software Video Phones - coupling all that with VoIP and empowering the disabled.

  • Moo Telecom: VoIP communications made easy - Ring anyway with the fun and ease of using a normal phone

  • TagR:Mobile Social Network with Real Time Locations Based services, and Ambience Intelligence, VoiP, IM, Skype, Googletalk, Mapping, Flickr, Events, Calendaring, Scheduling, SecondLife Support

  • ClearSMS : ClearSMS is a Web-based application that lets you send bulk SMS messages to your customers, contacts, or just about anyone.

  • Jajah:jah is a VoIP (Voice over IP) provider, founded by Austrians Roman Scharf and Daniel Mattes in 2005[1]. The Jajah headquarters are located in Mountain View, CA, USA, and Luxembourg. Jajah maintains a development centre in Israel.

  • Skype: It’s free to download and free to call other people on Skype. Skype the number one voice over ip software

  • PrivatePhone: a free local phone number with voicemail and messages you can check online or from any phone.

Top Stuff

MessengerFX

e-messenger

ILoveIM

Top 20 Ruby CMS

MSN Web Messenger

eBuddy



About Ajaxlines

Ajaxlines is a project focused on providing its audience with a database of most of Ajax related articles, resources, tutorials and services from around the world.

Its purpose is to showcase the power of Ajax and to act as a portal to the Ajax development community.


Search


Topics

  • .Net (171)
  • Ajax (89)
  • Ajax Games (10)
  • Articles (95)
  • Bookmarking (35)
  • Calendar (21)
  • Chat (45)
  • ColdFusion (3)
  • CSS (79)
  • Email (23)
  • Facebook (84)
  • Flash (19)
  • Google (54)
  • Html (28)
  • Image (11)
  • International Calls & VOIP (7)
  • Java (56)
  • Javascript (271)
  • jQuery (171)
  • JSON (70)
  • Perl (2)
  • PHP (162)
  • Presentation (19)
  • Python (3)
  • Resources (2)
  • RSS (8)
  • Ruby (31)
  • Storage (4)
  • Toolkits (103)
  • Tutorials (224)
  • UI (11)
  • Utilities (174)
  • Web2.0 (18)
  • XmlHttpRequest (28)
  • YUI (13)

© 2006 www.ajaxlines.com. All Rights Reserved. Powered by IRange