[How Do I:] Use the ASP.NET AJAX DropDown Control?

Please install Silverlight or click download to watch video locally.

With the DropDown control extender from the ASP.NET AJAX Control Toolkit, you can present the user with a drop-down list of options that trigger a partial-page update elsewhere on the Web page. The option selected by the user is passed to the server, allowing your server-side code to process the selection before completing the partial-page update.

Presented by Joe Stagner

Duration: 11 minutes, 51 seconds

Date: 30 March 2007

Watch    Video   |   Download    Video   |   VB Code    C# Code

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

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

Comments : 10

Leave a Comment

vasireddybharathreddy : On July 28, 2008 3:59 PM said:

Hi,

    If I want to change the backcolor/forecolor of the label

"Select an option" how can i do that. I tried all the options, but i am unable to change the backcolor. Can any one please tell me how to do that exactly.

cv_vikram : On August 06, 2008 2:48 PM said:

Very good tutorial.....thanks

alexanderhowell : On August 14, 2008 6:42 AM said:

Shame they don't work inside bound controls... :(

"The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)."

Source File:  C:\dev\AjaxControlToolkit\ExtenderBase\ScriptObjectBuilder. cs    Line:  295

qasimali84 : On September 24, 2008 6:42 AM said:

I have developed website in VS 2005 and recently I make this website Ajax Enabled. I Put Script Manager in Master Page and added UpdatePanel in .aspx page using that Master Page.

My dropdownlist AsyncPostBackTrigger deos not work.

Thanks in Advance

My Code is as follow.

                           

                               

                                   Width="160px" DataTextField="TypeDesc" DataValueField="TypeOfPatientId" OnSelectedIndexChanged="drpTypeOfPatient_SelectedIndexChang ed" AutoPostBack="True">

                               </asp:DropDownList>

                               </ContentTemplate>

                                <Triggers>

                                       <asp:AsyncPostBackTrigger ControlID="drpTypeOfPatient" EventName="SelectedIndexChanged" />

                               </Triggers>

                               </asp:UpdatePanel>  

Please help me.

joerbanno : On September 26, 2008 4:01 AM said:

Hi

I just want to say, that I love this How Do I video collection.

It's a great starting point.

Thank you very much.

Arni06 : On October 14, 2008 4:58 AM said:

gasimali84: update the page directive as below

<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" ... %>

This should fix you problem.

djibril_chimere_DIAW : On January 23, 2009 9:56 AM said:

Thanks ! Jërëjëf!

abinashbishoyi : On April 02, 2009 8:10 PM said:

Thanks I'm just looking for that.

Thanks Again.

vinaybaliyan : On April 05, 2009 8:35 AM said:

How can i add options dynamically to this dropdown?

royabash : On April 16, 2009 12:59 AM said:

this is great

How can i add details from dropdown list to database?

Leave a Comment

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

Microsoft Communities