Page view counter

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

Please install Silverlight or click download to watch video locally.

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: 25 July 2007

Watch    Video   |   Download    Video   |   VB Code

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

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

Comments : 12

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

almny_com : On January 18, 2009 5:11 AM said:

thanks

it's useful

almny_com : On January 18, 2009 5:13 AM said:

thanks i will copy it to my web site

http://www.almny.com

for learn .net

Posted at 09:06 in the video

Danny117 : On March 19, 2009 3:00 PM said:
A variation for ~/ playimageurl descriptor.AddProperty("PlayImageUrl", System.Web.VirtualPathUtility.MakeRelative(Me.Page.AppRelativeTemplateSourceDirectory, Me.PlayImageUrl))
Danny117 : On March 19, 2009 3:11 PM said:

Chris,

You've been such a great resource to me. I'm really rockin with this pattern to create my own scripted controls.

Asp.net crew,

The time based comments are too cool

Thanks

Danny117

chandradev1 : On May 09, 2009 6:50 AM said:

good video

haithemara : On May 13, 2009 4:17 PM said:

Good video. Can you make one about the Rich textbox .

Thank you

Leave a Comment

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

Microsoft Communities