<td> <asp:Button ID="btnP" runat="server" Text="P" Font-Size=".7em" CommandName="P" Font-Bold="true" CausesValidation="False" Width="20px" /> <asp:Button ID="btnA" runat="server" Text="A" Font-Size=".7em" CommandName="A" Font-Bold="true" CausesValidation="False" Width="20px" /> <asp:Button ID="btnL" runat="server" Text="L" Font-Size=".7em" CommandName="L" Font-Bold="true" CausesValidation="False" Width="20px" /> </td>
<ItemTemplate > <tr class="grd" onmouseout="this.style.backgroundColor=this.originalstyle;" onmouseover="this.originalstyle=this.style.backgroundColor;this.style.backgroundColor='#65a9d7'">
<td> <asp:RadioButtonList ID="rblAttendence" SelectedValue='<%# Status(Eval("Status")) %>' OnTextChanged="b" onclick="a()" runat="server" RepeatLayout="Table" RepeatDirection="Horizontal" AutoPostBack="true" ForeColor="Red" BorderColor="#003300"> <asp:ListItem Text="" Value="P" ></asp:ListItem> <asp:ListItem Text="" Value="A" ></asp:ListItem> <asp:ListItem Text="" Value="L" ></asp:ListItem> </asp:RadioButtonList>
Quote:Anyway, what you have to do is to attach an onClick event on both of the radio buttons inside the list with a call to the same function such that you aspx code of your radio button list looks something like this: HTML <asp:RadioButtonList ID="rbnDetPeriod" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal" > <asp:ListItem Text="si" Value="SI" Selected="True" onClick="someJavaScriptFunction();" ></asp:ListItem> <asp:ListItem Text="no" Value="NO" onClick="someJavaScriptFunction();" ></asp:ListItem> </asp:RadioButtonList>
<asp:RadioButtonList ID="rbnDetPeriod" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal" > <asp:ListItem Text="si" Value="SI" Selected="True" onClick="someJavaScriptFunction();" ></asp:ListItem> <asp:ListItem Text="no" Value="NO" onClick="someJavaScriptFunction();" ></asp:ListItem> </asp:RadioButtonList>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)