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

display content according to dropdownlist

$
0
0

hi guys, currently i using the below code to display time by clicking button.

how can i display 'textbox1' when user select first item in dropdownlist and display 'textbox2' when user select second item in dropdownlist?

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"><ContentTemplate><%= DateTime.Now.ToLongTimeString() %></ContentTemplate><Triggers><asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" /></Triggers></asp:UpdatePanel><asp:Button ID="Button1" runat="server" Text="Update" /><cc1:UpdatePanelAnimationExtender ID="upae" runat="server" TargetControlID="UpdatePanel1"><Animations><OnUpdated><FadeIn Duration="1.0" Fps="24" /></OnUpdated></Animations></cc1:UpdatePanelAnimationExtender>




Viewing all articles
Browse latest Browse all 5678

Trending Articles



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