C
CGuy
Hi,
I have a RadioButtonList control in my aspx page which shows two
radiobuttons - "Yes" and "No". Since my page is intended for international
audience, I would like the texts "Yes" and "No" to be read from resource
files. Right now, I'm doing it by the following code
ListItem[] items = new ListItem[]{new
ListItem(resourceManager.GetString("YES"), "Yes"), new
ListItem(resourceManager.GetString("NO"), "No")};
this.radioButtonList.Items.AddRange(items);
But, I would like to do this using the ASP.NET explicit syntax - something
like this
<asp:radiobuttonlist runat="server">
<asp:listitem value="yes" selected="true"><% =
resourceManager.GetString("YES") %></asp:listitem>
<asp:listitem value="no"><% = resourceManager.GetString("NO")
%></asp:listitem>
</asp:radiobuttonlist>
How do I accomplish this?
CGuy
I have a RadioButtonList control in my aspx page which shows two
radiobuttons - "Yes" and "No". Since my page is intended for international
audience, I would like the texts "Yes" and "No" to be read from resource
files. Right now, I'm doing it by the following code
ListItem[] items = new ListItem[]{new
ListItem(resourceManager.GetString("YES"), "Yes"), new
ListItem(resourceManager.GetString("NO"), "No")};
this.radioButtonList.Items.AddRange(items);
But, I would like to do this using the ASP.NET explicit syntax - something
like this
<asp:radiobuttonlist runat="server">
<asp:listitem value="yes" selected="true"><% =
resourceManager.GetString("YES") %></asp:listitem>
<asp:listitem value="no"><% = resourceManager.GetString("NO")
%></asp:listitem>
</asp:radiobuttonlist>
How do I accomplish this?
CGuy