microsoft visual basic 2015 chapter 09

55 139 0
 microsoft  visual basic 2015 chapter 09

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Microsoft Visual Basic 2015 CHAPTER NINE Creating Web Applications Objectives ►Create a web application ►Build a web form using ASP.NET ►Set web form properties ►Use the full screen view ►Add objects to a web form ►Add a DropDownList object Chapter 9: Creating Web Applications â 2016 Cengage Learningđ May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part Objectives ►Add a Calendar object ►Add a custom table for layout ►Validate data on web forms ►Use the tag in Visual Basic code ►Use string manipulation methods in the String class Chapter 9: Creating Web Applications © 2016 Cengage Learning® May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part Introduction ►Visual Studio allows you to create applications that can run on the web ►Visual Basic 2015 includes ASP.NET technology, with which you can create a user interface and a form for a web application ►A web form is a page displayed in a web browser, such as Internet Explorer and Firefox, and requests data from the user Chapter 9: Creating Web Applications © 2016 Cengage Learning® May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part Introduction Chapter 9: Creating Web Applications © 2016 Cengage Learning® May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part Creating a Web Application ►A webpage that allows users to enter information on a web form is considered a dynamic webpage because the user enters data and the webpage reacts to the data ►A static webpage contains no interactivity ►A web server is a computer that stores web documents and makes them available to people on the Internet ►The ASP.NET technology used with Visual Basic 2015 creates an active server page (ASP) Chapter 9: Creating Web Applications â 2016 Cengage Learningđ May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part Creating a Dynamic Website Using Visual Basic ►Start Visual Studio Tap or click the File tab and then tap or click New Web Site ►In the center pane, tap or click ASP.NET Web Forms Site Use the Location text box to name the chapter project application cabin ►Tap or click the OK button in the New Web Site dialog box Chapter 9: Creating Web Applications â 2016 Cengage Learningđ May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part Creating a Dynamic Website Using Visual Basic Chapter 9: Creating Web Applications © 2016 Cengage Learning® May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part Customizing the Master Page ►In the Solution Explorer window, double-tap or double-click Site.master to open the page ►Tap or click View on the menu bar, point to Toolbars, and then tap or click Formatting Select the “Application name” placeholder text at the top of the Site.master page Type Big Bear Cabins to replace the original title On the Formatting toolbar, tap or click the Font Size box arrow, and then select xx-large Chapter 9: Creating Web Applications © 2016 Cengage Learning® May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 9 Customizing the Master Page Chapter 9: Creating Web Applications â 2016 Cengage Learningđ May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 10 Applying the Regular Expression Validator ► Drag the RegularExpressionValidator object from the Toolbox to the right of the Email Address TextBox object in the table ► Name the RegularExpressionValidator by typing revEmail in its (ID) property ► Tap or click to the right of the ControlToValidate property, tap or click the list arrow, and then tap or click txtEmail ► Change the ErrorMessage property to * Error Email Format Chapter 9: Creating Web Applications â 2016 Cengage Learningđ May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 41 Applying the Regular Expression Validator ► To set txtEmail to validate that it contains a standard email address, tap or click to the right of the ValidationExpression property, and then tap or click its ellipsis button In the Regular Expression Editor dialog box, select Internet e-mail address in the Standard expressions list ► Tap or click the OK button in the Regular Expression Editor dialog box Run the application by tapping or clicking the Start Debugging button on the Standard toolbar Enter a name and an email address without an @ symbol, such as lochlan.email.com, and then press the ENTER key Chapter 9: Creating Web Applications â 2016 Cengage Learningđ May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 42 Applying the Regular Expression Validator Chapter 9: Creating Web Applications © 2016 Cengage Learning® May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 43 Applying Multiple Validations Chapter 9: Creating Web Applications â 2016 Cengage Learningđ May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 44 Displaying the Validation Summary Control ►The ValidationSummary control lets you display validation error messages in a single location, creating a clean layout for the web form ►You can use the ValidationSummary object to display all of the error messages in a different place, listing them in a blank area at the top or bottom of the form ►To use a ValidationSummary object, drag the object to the location on the webpage where you want the summary to appear Chapter 9: Creating Web Applications © 2016 Cengage Learning® May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 45 Using the Tag in Visual Basic Code Chapter 9: Creating Web Applications © 2016 Cengage Learning® May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 46 Finding String Length Chapter 9: Creating Web Applications â 2016 Cengage Learningđ May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 47 Using the Trim Procedure Chapter 9: Creating Web Applications â 2016 Cengage Learningđ May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 48 Converting Uppercase and Lowercase Text Chapter 9: Creating Web Applications © 2016 Cengage Learning® May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 49 Program Design Chapter 9: Creating Web Applications â 2016 Cengage Learningđ May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 50 Program Design Chapter 9: Creating Web Applications â 2016 Cengage Learningđ May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 51 Event Planning Document Chapter 9: Creating Web Applications © 2016 Cengage Learning® May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 52 Summary ►Create a web application ►Build a web form using ASP.NET ►Set web form properties ►Use the full screen view ►Add objects to a web form ►Add a DropDownList object Chapter 9: Creating Web Applications © 2016 Cengage Learning® May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 53 Summary ►Add a Calendar object ►Add a custom table for layout ►Validate data on web forms ►Use the tag in Visual Basic code ►Use string manipulation methods in the String class Chapter 9: Creating Web Applications © 2016 Cengage Learning® May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part 54 Microsoft Visual Basic 2015 CHAPTER NINE COMPLETE Creating Web Applications ... accessible website, in whole or in part Introduction Visual Studio allows you to create applications that can run on the web Visual Basic 2015 includes ASP.NET technology, with which you can... available to people on the Internet ►The ASP.NET technology used with Visual Basic 2015 creates an active server page (ASP) Chapter 9: Creating Web Applications â 2016 Cengage Learningđ May not... Visual Basic ►Start Visual Studio Tap or click the File tab and then tap or click New Web Site ►In the center pane, tap or click ASP.NET Web Forms Site Use the Location text box to name the chapter

Ngày đăng: 06/02/2018, 10:06

Mục lục

    Creating a Web Application

    Creating a Dynamic Website Using Visual Basic

    Creating a Dynamic Website Using Visual Basic

    Customizing the Master Page

    Customizing the Master Page

    Customizing Navigation Links on the Master Template

    Customizing Navigation Links on the Master Template

    Customizing Navigation Links on the Master Template

    Adding an Image Object

    Adding an Image Object

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan