Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

C# ПІДРУЧНИКИ / c# / Hungry Minds - ASP.NET Bible VB.NET & C#

.pdf
Скачиваний:
128
Добавлен:
12.02.2016
Размер:
7.64 Mб
Скачать

Figure 18-8: Bike.aspx displayed on a cell phone

Figure 18-9: Bike.aspx displayed on a Pocket PC

Figure 18-10: Bike.aspx displayed in a browser

Figure 18-11: A simple list

Figure 18-12: A bulleted mobile list

Figure 18-13: Selecting road bike

Figure 18-14: Viewing your first page of text

Figure 18-15: Viewing your next page of text

Figure 18-16: Listselect.aspx on the Pocket PC emulator

Figure 18-17: Listselect.aspx on the Openwave emulator

Figure 18-18: A TextBox on a cell phone

Figure 18-19: A TextBox on a Pocket PC

Chapter 19: ASP.NET Security

Figure 19-1: The Userauth.aspx page Figure 19-2: The Default.aspx page

Figure 19-3: Setting Integrated Windows Authentication for a virtual directory in IIS Figure 19-4: The Default.aspx page using Integrated Windows Authentication

Figure 19-5: Output after implementing role-based security (Teller1 is part of the Tellers role)

Chapter 20: Localizing ASP.NET Applications

Figure 20-1: Sample output of the SampleCulture.aspx file Figure 20-2: Sample output of a resource-aware application

Chapter 21: Deploying ASP.NET Applications

Figure 21-1: File System Editor

Figure 21-2: File System Editor button in Solution Explorer Figure 21-3: Add Project Output Group dialog box

Figure 21-4: Registry Editor

Figure 21-5: Registry Editor button in Solution Explorer Figure 21-6: File Types Editor

Figure 21-7: File Types Editor button in Solution Explorer Figure 21-8: Select Item In Project dialog box

Figure 21-9: User Interface Editor

Figure 21-10: User Interface Editor button in Solution Explorer Figure 21-11: Add Dialog dialog box

Figure 21-12: Custom Actions Editor

Figure 21-13: Custom Actions Editor button in Solution Explorer Figure 21-14: Launch Conditions Editor

Figure 21-15: Launch Conditions Editor button in Solution Explorer

Chapter 22: Introduction to Web Services

Figure 22-1: An HTTP -GET request with a query string Figure 22-2: The UDDI Find page

Figure 22-3: The UDDI Register page

Chapter 23: Web Services Infrastructure

Figure 23-1: Microsoft Web Services platform architecture

Chapter 24: Understanding SOAP

Figure 24-1: Structure of a SOAP Message

Figure 24-2: Structure of a SOAP message contained within an HTTP Post request

Chapter 25: Building a Web Service

Figure 25-1: Internet Information Services window Figure 25-2: Virtual Directory Creation Wizard Figure 25-3: Virtual Directory Alias panel

Figure 25-4: Web Site Content Directory panel Figure 25-5: Access Permissions panel

Figure 25-6: Final step of the Virtual Directory Creation Wizard Figure 25-7: Web service help page

Figure 25-8: WSDL document in Web browser Figure 25-9: Web method help page

Figure 25-10: XML results returned from method execution

Figure 25-11: .NET SDK Debugger window

Figure 25-12: .NET Debugger Processes dialog box Figure 25-13: Setting a breakpoint

Figure 25-14: Examining input arguments

Figure 25-15: Results window of successful method call

Chapter 26: Deploying and Publishing Web Services

Figure 26-1: UDDI home page

Figure 26-2: UDDI Web site personal registration page Figure 26-3: UDDI business registration administration page Figure 26-4: UDDI Service Registration page

Figure 26-5: UDDI service classification and bindings page Figure 26-6: UDDI Binding Detail page

Chapter 27: Finding Web Services

Figure 27-1: Using the Disco tool to find Web services

Figure 27-2: Using the Disco tool to discover information about the CTemp Web Service

Figure 27-3: The Microsoft UDDI Search Page

Figure 27-4: UDDI business registration information for Microsoft Figure 27-5: Microsoft Smart Searching Web Service bindings detail Figure 27-6: Results of executing the wsdl tool

Chapter 28: Consuming Web Services

Figure 28-1: Obtaining the WSDL document via the disco tool Figure 28-2: Generating the CTemp proxy class using the wsdl tool Figure 28-3: VB.NET compiler output

Figure 28-4: CTemp client user interface Figure 28-5: Results of temperature conversion

Chapter 29: ASP.NET Blackjack

Figure 29-1: The game begins. Figure 29-2: Hit me.

Figure 29-3: You busted.

Figure 29-4: You got 21! You win! Figure 29-5: You win!

Figure 29-6: You lose.

Chapter 30: Chatty Discussion Forum

Figure 30-1: The Topics page Figure 30-2: The Threads page Figure 30-3: The Messages page

Figure 30-4: The post message form at the bottom of the Messages page Figure 30-5: The NewThread page

Appendix A: Visual Basic Syntax

Figure A-1: The VB.NET GUI with the major sections highlighted Figure A-2: The New Project dialog box options

Figure A-3: Creating a new project

Figure A-4: The completed menu structure in MDI Form Figure A-5: The code editor for the File Exit option Figure A-6: The new form definition window

Figure A-7: The completed Help About window design

Figure A-8: Running Mailman application showing Help About window open Figure A-9: Second step of the Data Form Wizard

Figure A-10: Completed connection portion of Data Form Wizard Figure A-11: The field selection page of the Data Form Wizard Figure A-12: Data display page of the Data Form Wizard

Figure A-13: Running application with the Address form open and operational

Appendix B: Visual Basic Functions and Features

Figure B-1: Module creation and naming window Figure B-2: Compiler options window

Figure B-3: Sample splash window

Figure B-4: Debug window showing results of the MenuCheck subroutine

Figure B-5: The Properties page of a push button object Figure B-6: Successful build results in the Output window Figure B-7: Debug menu items

Figure B-8: Debugging session showing the current line of code with a watch variable set

Figure B-9: Debug window showing set break point

Appendix C: Visual Basic Object-Oriented Programming

Figure C-1: The class hierarchy

Figure C-2: A sample Web application form

Figure C-3: A newly created class

Figure C-4: The sample output

Appendix D: C# Syntax

Figure D-1: The completed New Project dialog box

Figure D-2: The Solution Explorer window depicting the new project Figure D-3: Code that you need to delete to be able to add your code Figure D-4: The complete code of the HelloWorld.cs class

Figure D-5: Output of the while code Figure D-6: Output of the do...while code Figure D-7: Output of the for code Figure D-8: Output of the foreach code Figure D-9: Output ofthe if...else code

Figure D-10: Output of the switch...case code Figure D-11: Output of the exception-handling code

Appendix E: C# Classes

Figure E-1: A sample output of a Console application Figure E-2: A sample Windows form

Figure E-3: Output of the ASP.NET Web application

Figure E-4: Sample output of the application using an indexer Figure E-5: Sample output of the application using an event

Appendix F: C# Components

Figure F-1: Sample output of the Calculate class that uses CalculateAmount.dll as a component

Figure F-2: Sample Order Form

Figure F-3: The Add Reference dialog box

Figure F-4: Sample output of an ASP.NET Web application that uses CalculateAmount.dll

Figure F-5: The preliminary structure of a class with a namespace Figure F-6: A sample Calculator form

List of Tables

Chapter 1: Understanding the .NET Framework

Table 1-1: Fragment of an ASP.NET Page Trace Table 1-2: Common Type System Data Types Table 1-3: Non-CTS -compliant Data Types Table 1-4: Visual Studio .NET's Major Features

Chapter 3: Building Forms with Web Controls

Table 3-1: IDs of different controls

Table 3-2: Properties of the Label control Table 3-3: Properties of the TextBox control

Table 3-4: Properties of the CheckBox and CheckBoxList controls Table 3-5: Properties of the RadioButton and RadioButtonList controls Table 3-6: Properties of the ListBox control

Table 3-7: Properties of the DropDownList control Table 3-8: Properties of the HyperLink control Table 3-9: Properties of the TableCell object Table 3-10: Properties of the Image control

Table 3-11: Properties of the button server control

Table 3-12: Events associated with ASP.NET server controls

Chapter 4: Using Rich Web Controls

Table 4-1: Properties of the Calendar control Table 4-2: Style objects

Table 4-3: Properties of the TreeView control Table 4-4: Properties of the TabStrip control Table 4-5: Properties of the Toolbar control

Chapter 5: Creating and Using Custom Controls

Table 5-1: Control properties Table 5-2: Control methods Table 5-3: Control events

Chapter 6: Validating User Input

Table 6-1: Properties of the RequiredFieldValidator control Table 6-2: Properties of the CompareValidator control Table 6-3: Properties of the RangeValidator control

Table 6-4: Properties of the RegularExpressionValidator control Table 6-5: Properties of the CustomValidator control

Table 6-6: Properties of the ValidationSummary control Table 6-7: Public Instance Events

Chapter 7: Debugging ASP.NET Pages

Table 7-1: Debug options

Table 7-2: Properties of the TraceContext class

Table 7-3: Public instance methods of the TraceContext class Table 7-4: Attributes of the Trace element

Chapter 8: Introducing ADO.NET

Table 8-1: ADO.NET classes for OLE DB data sources Table 8-2: ADO.NET classes for SQL Server

Table 8-3: The data access classes of ADO.NET Table 8-4: Feature changes in ADO.NET

Chapter 9: Understanding Data Binding

Table 9-1: Form control properties

Chapter 11: Using Templates

Table 11-1: Templates and the supporting controls Table 11-2: The DataList events

Table 11-3: Comparison of the Repeater, DataList, and DataGrid controls

Chapter 12: Using SQL Server with ASP.NET

Table 12-1: SQL data types

Table 12-2: IDs of the Controls on the Order Forms Table 12-3: IDs of the Controls on the Customer Form Table 12-4: ADOX objects

Table 12-5: ADOX properties Table 12-6: ADOX methods

Chapter 13: Advanced Data Binding and XML

Table 13-1: DropDownList control properties

Table 13-2: FileStream class constructor parameters

Chapter 15: Developing Business Objects

Table 15-1: DropDownList control properties Table 15-2: DropDownList control properties

Chapter 16: Building HTTP Handlers

Table 16-1: Properties of the HttpContext class

Table 16-2: Properties of the HttpRequest class

Table 16-3: Properties of the HttpResponse class

Chapter 19: ASP.NET Security

Table 19-1: Role-based security in COM+ 1.0 vs. role-based security in .NET Framework

Chapter 20: Localizing ASP.NET Applications

Table 20-1: Some specific culture names Table 20-2: Properties of the CultureInfo class Table 20-3: Region names

Table 20-4: Properties of the RegionInfo class

Chapter 21: Deploying ASP.NET Applications

Table 21-1: Configuration sections in ASP.NET

Chapter 22: Introduction to Web Services

Table 22-1: WSDL elements

Table 22-2: CTemp method arguments and data types

Chapter 23: Web Services Infrastructure

Table 23-1: .NET Web Service namespaces

Table 23-2: TransactionOption property values

Chapter 24: Understanding SOAP

Table 24-1: SOAP message elements

Table 24-2: XSD data types vs. CLR data types

Table 24-3: SOAP fault codes

Table 24-4: SOAP header direction enumeration

Table 24-5: SOAP extension message processing stages

Chapter 25: Building a Web Service

Table 25-1: Temperature conversion formulas

Table 25-2: Temperature conversion method arguments

Table 25-3: ASP.NET Web service files

Table 25-4: WebService attribute properties

Table 25-5: WebMethod attribute properties

Chapter 26: Deploying and Publishing Web Services

Table 26-1: Files deployed with the CTemp Web service

Chapter 27: Finding Web Services

Table 27-1: Disco tool command-line options

Table 27-2: Files created by the Disco tool

Table 27-3: WSDL tool command-line options

Chapter 28: Consuming Web Services

Table 28-1: Files created by the disco tool

Chapter 30: Chatty Discussion Forum

Table 30-1: The Topics table

Table 30-2: The Threads table

Table 30-3: The Thread's Name column attributes

Table 30-4: The Messages table

Appendix A: Visual Basic Syntax

Table A-1: Data element items for mailing list database

Table A-2: Menu information and properties table

Table A-3: Visual Basic data types

Table A-4: VB.NET operators

Appendix B: Visual Basic Functions and Features

Table B-1: Complete list of .NET built-in functions

Appendix C: Visual Basic Object-Oriented Programming

Table C-1: Name of the controls on the EmployeeDetails form

Appendix D: C# Syntax

Table D-1: Simple data types

Appendix E: C# Classes

Table E-1: Access specifiers

Table E-2: Names of the controls on the sample form

Appendix F: C# Components

Table F-1: IDs of text boxes and button in the sample form Table F-2: IDs of text boxes and buttons in the sample form

List of Sidebars

Chapter 17: Understanding Caching

State management in classic ASP

Соседние файлы в папке c#