Default value for asp.net multiline text field

I have a problem with asp.net multiline text box

<asp:TextBox ID="Oohrl" 
    runat="server"
    CssClass="textEntry"
    ClientIDMode="Static"
    Text="{/oohru/form/oohrl}">
</asp:TextBox>

This works fine with text = when loading the page, it places the corresponding value from the XML file

However, the following does NOT do this.

<asp:TextBox id="Description"
    TextMode="MultiLine"
    Columns="50"
    Rows="4"
    runat="server"
    ClientIDMode="Static"
    Text="{/oohru/form/desc}">
</asp:TextBox>

it just puts {/ oohru / form / desc} as literal text inside the text box. A multi-line block displays both a text field and an input in the first example.

The following shows how xhtml is created in the browser. This is the one that works, where asdf is the correct value that should display

<input class="textEntry" 
    id="Oohrl"
    value="asdf" 
    name="ctl00$RightColumn$Oohrl" 
    type="text">

This is one that does not

<textarea id="Description" 
    cols="50" 
    rows="4" 
    name="ctl00$RightColumn$Description">
    {/oohru/form/desc}
</textarea>

runat = "server", , . , xslt ?

+3
2

Ajax TextBoxWaterMark Control. .

+1
  • , , , ,

  • . , ,

0

All Articles