2016-08-04 3 views
0
<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> 

私のWebアプリケーションにこのラジオボタンリストを作成しました。私は、Text = ""要素の中にスペース/タブを作る必要があります。どうすればいいですか? nbsp; [テキストの先頭にスペースを追加するテキストエリア?] doesntの仕事と私はテキスト要素の内側の任意のタグを追加カント、ウィッヒはビットのsh * tのあるasp.netタグ内の "Text:" ""内に空白を入れるには

+0

の可能性のある重複(http://stackoverflow.com/questions/2457275/textarea-space-to-beginning-of-text) –

答えて

1
protected void Page_Load(object sender, EventArgs e) 
    { 
     if(!Page.IsPostBack) 
     { 
      foreach (ListItem item in RadioButtonListGutscheinArt.Items) 
      { 
       item.Text = item.Text.Replace(" ", "&nbsp;&nbsp;&nbsp;"); 
      } 
     } 
    } 
+0

あなたは私の助けを得ることができますか?私は尋ねることが禁止されている私はdidntする方法を知っていると私はこれを尋ねたときに戻ってprogrammする方法を知っています。あなたは本当にアップヴォー<3 –

関連する問題