Adding Text and Controls to the Page


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.

Add text and controls

  1. 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.)

  2. 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.

  3. From the Web Controls tab again, drag a Button control and a Label control onto the page. It might look something like this:

    click to expand




Microsoft ASP. NET Web Matrix Starter Kit
Microsoft ASP.NET Web Matrix Starter Kit (Bpg-Other)
ISBN: 0735618569
EAN: 2147483647
Year: 2003
Pages: 169
Authors: Mike Pope
BUY ON AMAZON

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net