Hi ,
I have a webapplication with a Radio button in the Dynamic template of Menu Control Which is inside the Content Pane As Follows .In this I want to check the radio button of only one menu item.If I choose radiobutton of another menuitem old radiobutton should become checked=false; but its not happening All radio buttons are selected.
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:Menu ID="MenuDB" runat="server" BackColor="#B5C7DE" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" Orientation="Horizontal" StaticSubMenuIndent="10px"> <Items> <asp:MenuItem Text="Select DB" Value="Select DB"> <asp:MenuItem Text="mdsql2:Whidbey" Value="mdsql2:Whidbey" Selected="True" NavigateUrl="#" > </asp:MenuItem> <asp:MenuItem Text="mdsql:Everett" Value="mdsql:Everett" NavigateUrl="#"></asp:MenuItem> <asp:MenuItem Text="mdsql:VS7Fork" Value="mdsql:VS7Fork" NavigateUrl="#"></asp:MenuItem> </asp:MenuItem> </Items> <StaticHoverStyle BackColor="#284E98" ForeColor="White" /> <DynamicItemTemplate> <input id="RBDB" type="radio" runat="server" /> <%# Eval("Text") %> </DynamicItemTemplate> </asp:Menu> Can any one help me? Thanks & Regards, Raj Thilak
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Menu ID="MenuDB" runat="server" BackColor="#B5C7DE" DynamicHorizontalOffset="2"
Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" Orientation="Horizontal"
StaticSubMenuIndent="10px">
<Items>
<asp:MenuItem Text="Select DB" Value="Select DB">
<asp:MenuItem Text="mdsql2:Whidbey" Value="mdsql2:Whidbey" Selected="True" NavigateUrl="#" > </asp:MenuItem>
<asp:MenuItem Text="mdsql:Everett" Value="mdsql:Everett" NavigateUrl="#"></asp:MenuItem>
<asp:MenuItem Text="mdsql:VS7Fork" Value="mdsql:VS7Fork" NavigateUrl="#"></asp:MenuItem>
</asp:MenuItem>
</Items>
<StaticHoverStyle BackColor="#284E98" ForeColor="White" />
<DynamicItemTemplate>
<input id="RBDB" type="radio" runat="server" /> <%# Eval("Text") %>
</DynamicItemTemplate>
</asp:Menu>
Can any one help me?
Thanks & Regards,
Raj Thilak
Raj, You'll need to write some javascript that ensures only one radio button is selected. That's about all you can do.--Danny