How to make text box with button using ASP.NET?

Question

How to make text box with button using ASP.NET?

Re: How to make text box with button using ASP.NET?

In the following example the usage of label web server control is explained. The property "Text" is used to assign a value (label) to the label control. We also have a button control which is used to submit the value back to the page.

Textbox Web Server Control - by Das

Sub MySub(sender As Object, e As EventArgs)
lblMsg.text = "Is Your First Name, " & txtFname.text & " ?"
End Sub

ASP.NET Textbox Server Control

First Name