Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

how to use update panel inside listview

$
0
0

when i use update panel inside listview triggered by radiobuttonlist inside listview,page  always postback , and i donot want that, i want to prevent page reload when radiobutton selected .

how can i solve it .
this code i use

<asp:ListView ID="ColorListView" runat="server" DataSourceID="ProductColorsDS" OnItemCommand="ColorListView_ItemCommand"><ItemTemplate><asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"><ContentTemplate><asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged"></asp:RadioButtonList></ContentTemplate><Triggers><asp:PostBackTrigger ControlID="RadioButtonList1" /></Triggers></asp:UpdatePanel><asp:UpdatePanelAnimationExtender runat="server" ID="UPextender" TargetControlID="UpdatePanel1" BehaviorID="animation"><animations><OnUpdating><%-- It should take 1/2 of a second to fade out --%><FadeOut Duration=".5" Fps="20" minimumOpacity=".1" /></OnUpdating><OnUpdated><%-- It should take 1 and 1/2 of a second to fade back in --%><FadeIn Duration="1.5" Fps="20" minimumOpacity=".1" /></OnUpdated></animations></asp:UpdatePanelAnimationExtender></ItemTemplate><LayoutTemplate><tr runat="server" id="itemPlaceholder"></tr></LayoutTemplate></asp:ListView></div></div><asp:ObjectDataSource ID="ProductColorsDS" runat="server" OldValuesParameterFormatString="{0}" SelectMethod="Read" TypeName="BOL.ProductsColorsImages"><SelectParameters><asp:Parameter DefaultValue="2" Name="ActionCode" Type="String" /><asp:QueryStringParameter DefaultValue="" Name="ProductID" QueryStringField="ProductID" Type="Int32" /><asp:Parameter Name="ColorID" Type="Int32" /></SelectParameters></asp:ObjectDataSource>


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>