Button1_Click
, like this:
protected void Button1_Click(object sender, EventArgs e)
{
}
Note: this is an example of a default event handler. Clicking the button is an event. There are lots of events that can happen when the user is interacting with a webpage, however, for every element on a page there is a default event and Visual Studio will automatically create a function to handle it for you if you double click it in design view.
protected void Button1_Click(object sender, EventArgs e)
{
Literal1.Text = "Hello " + TextBox1.Text;
}
The cursor moves down to match what you are typing and you can press enter to accept the current entry. This automatic predictive text feature is called 'intellisense'. You don't have to type along, as you can scroll down and select the option you want directly with either the mouse or the keyboard.
This is a good start, but there are a number of ways we can improve the web application - try the Improved Hello World tutorial
This tutorial is a slightly modified version of one originally found at Scotty's Tutorials