How do I fill an empty textbox with default text?

后端 未结 6 1739
独厮守ぢ
独厮守ぢ 2020-12-01 08:55

How do I fill a textbox with text if it is empty? I am using VB.NET.

6条回答
  •  庸人自扰
    2020-12-01 09:27

    I assume you meant to add text from the aspx page.

    Even when .NET don't suggest this feature in the intellitext, I assume that it will allow you to put any attribute, even custom that you can manipulate data in it. But, it does the work. and the value attribute is sent to the browser, therefore, initiate in the text field.

    For TextArea (TextMode="MultiLine"), you can put between the tags.

    Text Here will be inside the TextArea
    

    It is like html textarea tag behave.

提交回复
热议问题