By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,604 Members | 858 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,604 IT Pros & Developers. It's quick & easy.

validate radiobuttonlist in DataList

P: 6
Please help how do i validate that one of radiobuttonlist contained in datalist has been selected or not

Expand|Select|Wrap|Line Numbers
  2. <asp:datalist id="datalst" Runat="server" RepeatLayout="Table" CellPadding="5" CellSpacing="5"
  3. BorderWidth="0" RepeatColumns="4">
  4. <ItemTemplate>
  5. <asp:Label id=lbllogoid Visible="false" Runat="server" text='<%# DataBinder.Eval(Container.DataItem,"UsrLogoId")%>'>
  6. </asp:Label>
  7. <asp:Image ID="logoimg" Runat="server" ImageUrl='<%#ImageUrl(Convert.ToInt32(DataBinder.Eval(Contain er.DataItem,"UsrLogoId")))%>'></asp:Image>
  8. <asp:RadioButtonList id="rdbList" Runat="server" EnableViewState="True" OnSelectedIndexChanged="OnSelection" AutoPostBack="True">
  9. <asp:ListItem Value="1">1</asp:ListItem>
  10. <asp:ListItem Value="2">2</asp:ListItem>
  11. <asp:ListItem Value="3">3</asp:ListItem>
  12. </asp:RadioButtonList>
  13. </ItemTemplate>
  14. </asp:datalist>
Apr 24 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.