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

Answer: 
default text handling in a text box

```
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    TextBox1.Text = "Default Text" ' initialize the text box 
End Sub

```

clear the text when the cursor is in the text box

```
Private Sub TextBox1_GotFocus(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1_GotFocus
    TextBox1.Text = "" ' clear the text box for typing
End Sub

```

If the text box remains empty after data change then the default text comes again

```
Private Sub TextBox1_LostFocus(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1_LostFocus
    TextBox1.Text = "" ' clear the text box for typing
End Sub

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

```
<asp:TextBox ID="TextBox1" runat="server" value="Default Value"></asp:TextBox

```

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.

```
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine">Text Here will be inside the TextArea</asp:TextBox>

```

It is like html textarea tag behave.