G
Ganesha
Hi,
I am new to AJAX and was trying to do the following. I want to update one
dropdownlist based on the selection in the other dropdownlist. I want it to
postback partially.
My code looks as follows:
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<aspropDownList ID="DropDownList1" runat="server"
DataTextField="fieldname" DataValueField="fieldname" AutoPostBack="True"
OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
</aspropDownList>
<aspropDownList ID="DropDownList2" runat="server"
DataTextField="Text" DataValueField="Val">
</aspropDownList>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="DropDownList1"
EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
When i click on Dropdownlist1 it posts back and works fine but the
IsInAsyncPostBack property of script manager will be set to false. As per my
knowledge it should be set to true for partial postback. Can anyone please
let me know why this propery is set to false. what am i doing wrong.
Thanks
I am new to AJAX and was trying to do the following. I want to update one
dropdownlist based on the selection in the other dropdownlist. I want it to
postback partially.
My code looks as follows:
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<aspropDownList ID="DropDownList1" runat="server"
DataTextField="fieldname" DataValueField="fieldname" AutoPostBack="True"
OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
</aspropDownList>
<aspropDownList ID="DropDownList2" runat="server"
DataTextField="Text" DataValueField="Val">
</aspropDownList>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="DropDownList1"
EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
When i click on Dropdownlist1 it posts back and works fine but the
IsInAsyncPostBack property of script manager will be set to false. As per my
knowledge it should be set to true for partial postback. Can anyone please
let me know why this propery is set to false. what am i doing wrong.
Thanks