How Do I: Build a Custom ASP.NET AJAX Server Control?

Learn how to create a custom Web server control with ASP.NET AJAX functionality using the AJAX extensions in the Microsoft AJAX Library. This video walks you through both the server-side .NET code and the client-side JavaScript code, and provides an explanation of the ‘prototype’ concept. The custom ASP.NET AJAX control can then be used in an .aspx page like any other server control.

Presented by Chris Pels

Duration: 20 minutes, 22 seconds

Date: 22 June 2007

Watch the video   |   Download the video   |   Get the code

Video downloads: WMV | Zune | iPod | PSP | MPEG-4 | 3GP

Audio downloads: AAC | WMA | MPEG-4 | MPEG-3 | MPEG-2

Comments : 6

Leave a Comment

tonvanr : On May 29, 2008 11:01 AM said:

Very nice, but how can I use this in a custom server control. When copying the class to the custom server control I receive and error scriptmanager is not defined and the interface IScriptControl is also not defined.

Doesn't it work in custom server controls?

thanx

ton

zeus0529 : On July 01, 2008 10:07 AM said:

I would love to see a C# version of this sample.

weitzhandler : On July 31, 2008 8:03 AM said:

thank you for posting it, this is really really helpful.

however, somehow I try to implement such a class unsuccessfully;

I want to change the TextBox.BorderStyle property according to rules.

but when I want to recall the item from the class it returns 'None'. I want it to be style="border-style:none"

well should I convert it to string?

then how is the property value returned as NotSet or as BorderStyle.NotSet (full name including enum name)

weitzhandler : On July 31, 2008 8:03 PM said:

I desperately try to create an ASP.NET AJAX server control project which is not a web site and copying the same classes and it doesn't work!!!

IE throws an exception when executing 'CustomControls' is unidentified

cv_vikram : On August 07, 2008 11:26 AM said:

Good tutorial...thanks

pawankumar : On August 19, 2008 9:37 AM said:

Hi everyone!!!

I found the videos very informative for all.They are really helpful.

Pawan Kumar

http://dev.codeplatter.com

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Page view counter
Microsoft Communities