如何在 asp.net 标签内的 "Text: "" " 中获取 space
How can I get a space in "Text: "" " inside of a asp.net tag
<asp:RadioButtonList ID="RadioButtonListGutscheinArt" Visible="true" runat="server">
<asp:ListItem ID="ListItemZugAbonnement" Text="Ich besitze bereits ein Zug-Abonnement oder bin bei Lehrbeginn noch nicht 16 Jahre alt." Value="1" Selected="True" />
<asp:ListItem ID="ListItemBestellungHalbtax" Text="Bestellung Halbtax" Value="2" />
</asp:RadioButtonList>
我在我的网络应用程序中创建了这个单选按钮列表。我需要在 Text=" " 元素中创建一个 space/tab 。我该怎么做? nbsp;
不起作用,我无法在文本元素内添加任何标签。
protected void Page_Load(object sender, EventArgs e)
{
if(!Page.IsPostBack)
{
foreach (ListItem item in RadioButtonListGutscheinArt.Items)
{
item.Text = item.Text.Replace(" ", " ");
}
}
}
<asp:RadioButtonList ID="RadioButtonListGutscheinArt" Visible="true" runat="server">
<asp:ListItem ID="ListItemZugAbonnement" Text="Ich besitze bereits ein Zug-Abonnement oder bin bei Lehrbeginn noch nicht 16 Jahre alt." Value="1" Selected="True" />
<asp:ListItem ID="ListItemBestellungHalbtax" Text="Bestellung Halbtax" Value="2" />
</asp:RadioButtonList>
我在我的网络应用程序中创建了这个单选按钮列表。我需要在 Text=" " 元素中创建一个 space/tab 。我该怎么做? nbsp;
不起作用,我无法在文本元素内添加任何标签。
protected void Page_Load(object sender, EventArgs e)
{
if(!Page.IsPostBack)
{
foreach (ListItem item in RadioButtonListGutscheinArt.Items)
{
item.Text = item.Text.Replace(" ", " ");
}
}
}