Microsoft Visual Basic 2005 Step by Step (Step by Step (Microsoft))
Chapter 20 Quick Reference
To | Do this |
Create a new ASP.NET Web site | Click the New Web Site command on the File menu, click ASP.NET Web Site, specify a folder location in the Location list box, and then click OK. |
Switch between Design mode and Source mode in the Web Page Designer | Click the Source or Design tabs in the Designer. |
Enter text on a Web page | Click the Design tab, and then type the text you want to add. |
Format text on a Web page | On the page, select the text that you want to format, and then click a button or control on the Formatting toolbar. |
View the HTML code in your Web page | Click the Source tab in the designer. |
Add controls to a Web page | Display the Web page in Design mode, open the Toolbox (which automatically contains Visual Web Developer controls), position the insertion point where you want to place the control on the page, and then double-click the control in the Toolbox. |
Change the name of an object on a Web page | Use the Properties window to change the object's ID property to a new name. |
Write an event procedure for an object on a Web page | Double-click the object to display the code-behind file, and write the event procedure code for the object in the Code Editor. |
Verify the format of the data entered by the user into a control on a Web page | Use one or more validator controls from the Validation tab of the Toolbox to test the data entered in an input control. |
Run and test a Web site in Visual Studio | Click the Start Debugging button on the Standard toolbar. Visual Studio builds the project and loads the Web site in Internet Explorer. |
Create an HTML page for a project | Click the Add New Item command on the Website menu, and then add the new HTML page to the project. Create and format the HTML page by using the Web Page Designer. |
Create a link to other Web pages on your Web site | Add a HyperLink control to your Web page, and then set the control's NavigateUrl property to the address of the linked Web page. |
Display database records on a Web page | Add a GridView control to a Web page in the Web Page Designer. Establish a connection to the database and format the data by using commands in the GridView Tasks list box. (The Choose Data Source command launches the Data Source Configuration Wizard.) |
Set the title displayed for Web pages on the Internet Explorer title bar | For each Web page, use the Properties window to set the Document object's Title property. |