|
In this section, you ll add some static text to the page you created earlier in the chapter, and then you ll add controls such as a text box and a button.
Click inside the page, and type in the words My First Web Forms Page. Notice that you can just type your static text into the page as if you were in a word processing document. If you like, you can select a style such as Heading 1 from the Block Format list in the toolbar. (The text is formatted as Normal by default.) Place the entry point at the end of your heading, and press Enter a few times to create several empty lines to which you can drag controls. (In HTML terms, you re creating some <p> elements.)
From the Web Controls tab of the Toolbox, drag a TextBox control onto the page and place it below the heading. Within limits, you can drag the text box around on the page.
From the Web Controls tab again, drag a Button control and a Label control onto the page. It might look something like this:
|