OnSelectedIndexChanged IN DROPDOWNLIST CAN BE CHANGED IN ajax dropdownlist as ?????

Posted by Oswaldlily under ASP.NET on 7/16/2013 | Points: 10 | Views : 1142 | Status : [Member] | Replies : 3
OnSelectedIndexChanged IN DROPDOWNLIST CAN BE CHANGED IN ajax dropdownlist as ?????

<asp:DropDownList ID="ddl" runat="server" ToolTip="Project Name" AutoPostBack="true" OnSelectedIndexChanged="ddl_SelectedIndexChanged"></asp:DropDownList>

I am changing this into Ajax dropdownlist extender......What can be written instead of OnSelectedIndexChanged??




Responses

Posted by: aswinialuri-19361 on: 7/30/2013 [Member] Starter | Points: 25

Up
0
Down
hi,
try this code it will help you
<asp:DropDownList ID="ddl1" runat="server" OnSelectedIndexChanged="update1" AutoPostBack="True"  />


<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
<asp:AsyncPostbackTrigger Control="ddl1" EventName="SelectedIndexChanged" />
</Triggers>
<ContentTemplate>
<asp:TextBox runat="server" ID="txt1" />
</ContentTemplate>
</asp:UpdatePanel>


Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: aswinialuri-19361 on: 7/30/2013 [Member] Starter | Points: 25

Up
0
Down
if any doubt about the ajax controls raise a query

Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jitendrasoft09 on: 7/30/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Yes Oswaldlily. You can change. Just add ajax dropdownextender in your asp.net dropdownlist. whenever you are changing OnSelectedIndexChanged in dropdownlist your dropdownextender will change with TargetControlID

 <ajaxToolkit:DropDownExtender ID="Label1_DropDownExtender" runat="server" BehaviorID="dde"

DynamicServicePath="" Enabled="True" TargetControlID="Label1" DropDownControlID="Panel1" >
</ajaxToolkit:DropDownExtender>


Refer below link for more information-
http://forums.asp.net/p/1263286/2366721.aspx

Hope you have understood.



Jitendra Kumar
If my post helps you, plz mark as an answer.

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response