When radio button selection changes do not cause refresh?
Posted
by JPJedi
on Stack Overflow
See other posts from Stack Overflow
or by JPJedi
Published on 2010-04-28T15:55:55Z
Indexed on
2010/04/28
17:03 UTC
Read the original article
Hit count: 275
When the selection of the radio buttons change I would like to show/hide the panel in the next table cell. I have it hiding and showing fine but each time it causes the page to refresh to the top. Is their a way to stop that refresh? I would like to hide and show the panel dynamically.
<table>
<tr>
<td>
<asp:RadioButtonList runat="server" ID="rblPlayerStatus" AutoPostBack="true" >
<asp:ListItem>Free Agent</asp:ListItem>
<asp:ListItem>I have teammate</asp:ListItem>
</asp:RadioButtonList>
</td>
<td>
<asp:Panel runat="server" ID="pnlTeamMate">
<asp:Label runat="server" ID="lblTeamMate" Text="Choose Teammate" />
</asp:Panel>
</td>
</tr>
</table>
© Stack Overflow or respective owner