Home »
MCQs »
ASP.Net MCQs
What is the correct syntax to create ASP.NET RadioButton control?
111. What is the correct syntax to create ASP.NET RadioButton control?
- <asp:RB ID="RB1" runat="server" Text="Male" GroupName="gender"/>
- <asp:RD ID="RB1" runat="server" Text="Male" GroupName="gender"/>
- <asp:RadioButton ID="RB1" runat="server" Text="Male" GroupName="gender"/>
- None of the above
Answer: C) <asp:RadioButton ID="RB1" runat="server" Text="Male" GroupName="gender"/>
Explanation:
The 3rd syntax is correct to create an ASP.NET RadioButton control.