Series: 10267A
Publisher: Microsoft Pres
Year: 2010
Language: English
Pages: 1058
Lab Instructions......Page 1
Module 2: Lab Instructions: Creating Web Applications by Using Microsoft ® Visual Studio® 2010 and Microsoft .NET– Based Languages ( Visual Basic)
......Page 3
Lab: Creating Web Applications by Using Microsoft Visual Studio 2010 and Microsoft .Net-Based Languages
......Page 4
Lab Scenario......Page 6
Exercise 1: Creating an ASP.NET Web Site......Page 7
Exercise 2: Adding and Configuring Server Controls in Web Forms......Page 9
Exercise 3: Building and Deploying an ASP.NET Web Application......Page 12
Module 2: Lab Instructions: Creating Web Applications by Using Microsoft ® Visual Studio® 2010 and Microsoft .NET– Based Languages ( Visual C#)
......Page 13
Lab: Creating Web Applications by Using Microsoft Visual Studio 2010 and Microsoft .Net-Based Languages
......Page 14
Lab Scenario......Page 16
Exercise 1: Creating an ASP.NET Web Site......Page 17
Exercise 2: Adding and Configuring Server Controls in Web Forms......Page 19
Exercise 3: Building and Deploying an ASP.NET Web Application......Page 22
Module 3:
Lab Instructions: Creating a Microsoft® ASP.NET Web Form ( Visual Basic)......Page 23
Lab: Creating a Microsoft ASP.NET Web Form
......Page 24
Lab Scenario......Page 26
Exercise 1: Creating a Web Form......Page 27
Exercise 2: Adding and Configuring Server Controls in a Web Form......Page 28
Module 3:
Lab Instructions: Creating a Microsoft® ASP.NET Web Form ( Visual C#)......Page 35
Lab: Creating a Microsoft ASP.NET Web Form
......Page 36
Lab Scenario......Page 38
Exercise 1: Creating a Web Form......Page 39
Exercise 2: Adding and Configuring Server Controls in a Web Form......Page 40
Module 4:
Lab Instructions: Adding Functionality to a Microsoft ® ASP. NET Web Form ( Visual Basic)......Page 47
Lab: Adding Functionality to a Microsoft ASP.NET Web Form
......Page 48
Lab Scenario......Page 50
Exercise 1: Implementing Code in a Web Application......Page 51
Exercise 2: Creating Event Procedures......Page 52
Exercise 3: Creating an Entity Component......Page 54
Exercise 4: Handling Page and Control Events......Page 69
Module 4:
Lab Instructions: Adding Functionality to a Microsoft ® ASP. NET Web Form ( Visual C#)......Page 75
Lab: Adding Functionality to a Microsoft ASP.NET Web Form......Page 76
Lab Scenario......Page 78
Exercise 1: Implementing Code in a Web Application......Page 79
Exercise 2: Creating Event Procedures......Page 80
Exercise 3: Creating an Entity Component......Page 82
Exercise 4: Handling Page and Control Events......Page 97
Module 5:
Lab Instructions: Implementing Master Pages and User Controls ( Visual Basic)......Page 103
Lab: Implementing Master Pages and User Controls
......Page 104
Lab Scenario......Page 106
Exercise 1: Adding and Applying a Master Page......Page 107
Exercise 2: Converting Web Forms to Content Pages and User Controls......Page 109
Module 5:
Lab Instructions: Implementing Master Pages and User Controls ( Visual C#)......Page 119
Lab: Implementing Master Pages and User Controls
......Page 120
Lab Scenario......Page 122
Exercise 1: Adding and Applying a Master Page......Page 123
Exercise 2: Converting Web Forms to Content Pages and User Controls......Page 125
Module 6:
Lab Instructions: Validating User Input (Visual Basic)......Page 134
Lab:
Validating User Input......Page 135
Lab Scenario......Page 137
Exercise 1: Adding Validation Controls......Page 138
Exercise 2: Configuring Validation Controls......Page 142
Exercise 3: Adding Server-Side Validation......Page 147
Module 6:
Lab Instructions: Validating User Input (Visual C#)......Page 150
Lab:
Validating User Input......Page 151
Lab Scenario......Page 153
Exercise 1: Adding Validation Controls......Page 154
Exercise 2: Configuring Validation Controls......Page 158
Exercise 3: Adding Server-Side Validation......Page 163
Module 7:
Lab Instructions: Troubleshooting Microsoft® ASP. NET Web Applications ( Visual Basic)......Page 166
Lab: Troubleshooting Microsoft ASP.NET Web Applications......Page 167
Lab Scenario......Page 169
Exercise 1: Debugging a Web Application......Page 170
Exercise 2: Tracing a Web Application......Page 177
Module 7:
Lab Instructions: Troubleshooting Microsoft® ASP. NET Web Applications ( Visual C#)......Page 179
Lab: Troubleshooting Microsoft ASP.NET Web Applications......Page 180
Lab Scenario......Page 182
Exercise 1: Debugging a Web Application......Page 183
Exercise 2: Tracing a Web Application......Page 190
Module 8:
Lab Instructions: Managing Data in a Microsoft ® ASP. NET 4.0 Web Application ( Visual Basic)......Page 192
Lab: Managing Data in an ASP. NET 4.0 Web Application......Page 193
Lab Scenario......Page 195
Exercise 1: Connecting to a Data Source......Page 196
Exercise 2: Binding a Server Control to a Data Source......Page 198
Exercise 3: Modifying a Data Source......Page 200
Module 8:
Lab Instructions: Managing Data in a Microsoft ® ASP. NET 4.0 Web Application ( Visual C#)......Page 207
Lab: Managing Data in an ASP. NET 4.0 Web Application
......Page 208
Lab Scenario......Page 210
Exercise 1: Connecting to a Data Source......Page 211
Exercise 2: Binding a Server Control to a Data Source......Page 213
Exercise 3: Modifying a Data Source......Page 215
Lab Shutdown......Page 221
Module 9:
Lab Instructions: Managing Data Access Tasks by Using LINQ ( Visual Basic)......Page 222
Lab: Managing Data Access Tasks by Using LINQ
......Page 223
Lab Scenario......Page 225
Exercise 1: Loading Data by Using the XmlDataSource Control......Page 226
Exercise 2: Displaying Data by Using LINQ to XML......Page 228
Exercise 3: Saving Data by Using LINQ to Entities......Page 233
Module 9:
Lab Instructions: Managing Data Access Tasks by Using LINQ ( Visual C#)......Page 239
Lab: Managing Data Access Tasks by Using LINQ
......Page 240
Lab Scenario......Page 242
Exercise 1: Loading Data by Using the XmlDataSource Control......Page 243
Exercise 2: Displaying Data by Using LINQ to XML......Page 245
Exercise 3: Saving Data by Using LINQ to Entities......Page 250
Module 10:
Lab Instructions: Managing Data by Using Microsoft ® ASP. NET Dynamic Data ( Visual Basic)......Page 257
Lab: Managing Data by Using ASP .NET Dynamic Data
......Page 258
Lab Scenario......Page 260
Exercise 1: Adding Dynamic Data to an Existing Web Site......Page 261
Exercise 2: Registering Entity Framework with Dynamic Data......Page 263
Exercise 3: Map, Clean, and Test the Solution......Page 266
Module 10:
Lab Instructions: Managing Data by Using Microsoft ® ASP. NET Dynamic Data ( Visual C#)......Page 268
Lab: Managing Data by Using ASP .NET Dynamic Data
......Page 269
Lab Scenario......Page 271
Exercise 1: Adding Dynamic Data to an Existing Web Site......Page 272
Exercise 2: Registering Entity Framework with Dynamic Data......Page 274
Exercise 3: Map, Clean, and Test the Solution......Page 277
Module 11:
Lab Instructions: Creating a Microsoft® ASP.NET Ajax- enabled Web Forms Application ( Visual Basic)......Page 279
Lab: Creating a Microsoft ASP.NET Ajax-Enabled Web Forms Application
......Page 280
Lab Scenario......Page 282
Exercise 1: Creating a Modal About Box......Page 283
Exercise 2: Customizing Dynamic Data Field Templates with Ajax Server Controls......Page 289
Exercise 3: Adding the Country Import Progress Indicator......Page 291
Module 11:
Lab Instructions: Creating a Microsoft® ASP.NET Ajax- enabled Web Forms Application ( Visual C#)......Page 293
Lab: Creating a Microsoft ASP.NET Ajax-Enabled Web Forms Application
......Page 294
Lab Scenario......Page 296
Exercise 1: Creating a Modal About Box......Page 297
Exercise 2: Customizing Dynamic Data Field Templates with Ajax Server Controls......Page 303
Exercise 3: Adding the Country Import Progress Indicator......Page 304
Module 12:
Lab Instructions: Consuming Microsoft® Windows Communication Foundation Services ( Visual Basic)......Page 306
Lab: Consuming Windows Commuunicatio Foundation Services
......Page 307
Lab Scenario......Page 309
Exercise 1: Creating a WCF Service Reference Proxy......Page 310
Exercise 2: Calling a WCF Service Method from a Web Form......Page 312
Exercise 3: Implementing WCF Data Services......Page 315
Module 12:
Lab Instructions: Consuming Microsoft® Windows Communication Foundation Services ( Visual C#)......Page 318
Lab: Consuming Windows Commuunicatio Foundation Services
......Page 319
Lab Scenario......Page 321
Exercise 1: Creating a WCF Service Reference Proxy......Page 322
Exercise 2: Calling a WCF Service Method from a Web Form......Page 324
Exercise 3: Implementing WCF Data Services......Page 327
Module 13:
Lab Instructions: Managing State in Web Applications ( Visual Basic)......Page 329
Lab: Managing State in Web Applications
......Page 330
Lab Scenario......Page 332
Exercise 1: Examining the View State......Page 333
Exercise 2: Caching the Countries......Page 336
Exercise 3: Displaying a Visitors Counter on the Default Page......Page 340
Module 13:
Lab Instructions: Managing State in Web Applications ( Visual C#)......Page 344
Lab: Managing State in Web Applications
......Page 345
Lab Scenario......Page 347
Exercise 1: Examining the View State......Page 348
Exercise 2: Caching the Countries......Page 351
Exercise 3: Displaying a Visitors Counter on the Default Page......Page 355
Module 14:
Lab Instructions: Configuring and Deploying a Microsoft ® ASP. NET Web Application ( Visual Basic)......Page 359
Lab: Configuring and Deploying a Microsoft ASP.NET Web Application
......Page 360
Lab Scenario......Page 362
Exercise 1: Configuring the List View Page Size and Enabling the Save Countries Button......Page 363
Exercise 2: Configuring the Visitor Counter......Page 369
Exercise 3: Deploying the Web Application......Page 373
Module 14:
Lab Instructions: Configuring and Deploying a Microsoft ® ASP. NET Web Application ( Visual C#)......Page 376
Lab: Configuring and Deploying a Microsoft ASP.NET Web Application
......Page 377
Lab Scenario......Page 379
Exercise 1: Configuring the List View Page Size and Enabling the Save Countries Button......Page 380
Exercise 2: Configuring the Visitor Counter......Page 386
Exercise 3: Deploying the Web Application......Page 390
Module 15:
Lab Instructions: Securing a Microsoft® ASP. NET Web Application ( Visual Basic)......Page 393
Lab: Securing a Microsoft ASP.NET Web Application......Page 394
Lab Scenario......Page 396
Exercise 1: Enabling Forms Authentication......Page 397
Exercise 2: Implementing Authorization......Page 403
Exercise 3: Protecting Configuration File......Page 410
Module 15:
Lab Instructions: Securing a Microsoft® ASP. NET Web Application ( Visual C#)......Page 414
Lab: Securing a Microsoft ASP.NET Web Application
......Page 415
Lab Scenario......Page 417
Exercise 1: Enabling Forms Authentication......Page 418
Exercise 2: Implementing Authorization......Page 424
Exercise 3: Protecting Configuration File......Page 431
Module 16:
Lab Instructions: Implementing Advanced Technologies Supported by Microsoft ® Visual Studio ® 2010 for Web Development ( Visual Basic)......Page 435
Lab: Implementing Advanced Technologies Supported by Microsoft Visual Studio 2010 for Web Development
......Page 436
Lab Scenario......Page 438
Exercise: Implementing a Silverlight Application......Page 439
Module 16:
Lab Instructions: Implementing Advanced Technologies Supported by Microsoft ® Visual Studio ® 2010 for Web Development ( Visual C#)......Page 445
Lab: Implementing Advanced Technologies Supported by Microsoft Visual Studio 2010 for Web Development
......Page 446
Lab Scenario......Page 448
Exercise: Implementing a Silverlight Application......Page 449
Module 2: Lab Answer Key: Creating Web Applications by Using Microsoft ® Visual Studio ® 2010 and Microsoft .NET– Based Languages ( Visual Basic)......Page 455
Exercise 1: Creating an ASP.NET Web Site......Page 456
Exercise 2: Adding and Configuring Server Controls in Web Forms......Page 459
Exercise 3 Building and Deploying an ASP.NET Web Application......Page 464
Module 2: Lab Answer Key: Creating Web Applications by Using Microsoft ® Visual Studio ® 2010 and Microsoft .NET– Based Languages ( Visual C#)......Page 466
Exercise 1: Creating an ASP.NET Web Site......Page 467
Exercise 2: Adding and Configuring Server Controls in Web Forms......Page 470
Exercise 3 Building and Deploying an ASP.NET Web Application......Page 475
Module 3:
Lab Answer Key: Creating a Microsoft® ASP.NET Web Form ( Visual Basic)......Page 477
Exercise 1: Creating a Web Form......Page 478
Exercise 2: Adding and Configuring Server Controls in a Web Form......Page 479
Module 3:
Lab Answer Key: Creating a Microsoft® ASP.NET Web Form ( Visual C#)......Page 499
Exercise 1: Creating a Web Form......Page 500
Exercise 2: Adding and Configuring Server Controls in a Web Form......Page 501
Module 4: Lab Answer Key: Adding Functionality to a Microsoft® ASP.NET Web Form ( Visual Basic)......Page 521
Exercise 1: Implementing Code in a Web Application......Page 522
Exercise 2: Creating Event Procedures......Page 523
Exercise 3: Creating an Entity Component......Page 525
Exercise 4: Handling Page and Control Events......Page 545
Module 4: Lab Answer Key: Adding Functionality to a Microsoft® ASP.NET Web Form ( Visual C#)......Page 554
Exercise 1: Implementing Code in a Web Application......Page 555
Exercise 2: Creating Event Procedures......Page 556
Exercise 3: Creating an Entity Component......Page 558
Exercise 4: Handling Page and Control Events......Page 578
Module 5:
Lab Answer Key: Implementing Master Pages and User Controls ( Visual Basic)......Page 587
Exercise 1: Adding and Applying a Master Page......Page 588
Exercise 2: Converting Web Forms to Content Pages and User Controls......Page 593
Module 5:
Lab Answer Key: Implementing Master Pages and User Controls ( Visual C#)......Page 610
Exercise 1: Adding and Applying a Master Page......Page 611
Exercise 2: Converting Web Forms to Content Pages and User Controls......Page 616
Module 6:
Lab Answer Key: Validating User Input (Visual Basic)......Page 632
Exercise 1: Adding Validation Controls......Page 633
Exercise 2: Configuring Validation Controls......Page 641
Exercise 3: Adding Server-Side Validation......Page 656
Module 6:
Lab Answer Key: Validating User Input (Visual C#)......Page 661
Exercise 1: Adding Validation Controls......Page 662
Exercise 2: Configuring Validation Controls......Page 670
Exercise 3: Adding Server-Side Validation......Page 686
Module 7: Lab Answer Key: Troubleshooting Microsoft® ASP.NET Web Applications ( Visual Basic)......Page 690
Exercise 1: Debugging a Web Application......Page 691
Exercise 2: Tracing a Web Application......Page 703
Module 7: Lab Answer Key: Troubleshooting Microsoft® ASP.NET Web Applications ( Visual C#)......Page 706
Exercise 1: Debugging a Web Application......Page 707
Exercise 2: Tracing a Web Application......Page 720
Module 8: Lab Answer Key: Managing Data in a Microsoft ® ASP.NET 4.0 Web Application ( Visual Basic)......Page 723
Exercise 1: Connecting to a Data Source......Page 724
Exercise 2: Binding a Server Control to a Data Source......Page 727
Exercise 3: Modifying a Data Source......Page 730
Module 8: Lab Answer Key: Managing Data in a Microsoft ® ASP.NET 4.0 Web Application ( Visual C#)......Page 745
Exercise 1: Connecting to a Data Source......Page 746
Exercise 2: Binding a Server Control to a Data Source......Page 749
Exercise 3: Modifying a Data Source......Page 752
Module 9:
Lab Answer Key: Managing Data Access Tasks by Using LINQ ( Visual Basic)......Page 767
Exercise 1: Loading Data by Using the XmlDataSource Control......Page 768
Exercise 2: Displaying Data by Using LINQ to XML......Page 772
Exercise 3: Saving Data by Using LINQ to Entities......Page 782
Module 9:
Lab Answer Key: Managing Data Access Tasks by Using LINQ ( Visual C#)......Page 791
Exercise 1: Loading Data by Using the XmlDataSource Control......Page 792
Exercise 2: Displaying Data by Using LINQ to XML......Page 796
Exercise 3: Saving Data by Using LINQ to Entities......Page 806
Module 10: Lab Answer Key: Managing Data by Using Microsoft® ASP.NET Dynamic Data ( Visual Basic)......Page 816
Exercise 1: Adding Dynamic Data to an Existing Web Site......Page 817
Exercise 2: Registering Entity Framework with Dynamic Data......Page 822
Exercise 3: Map, Clean, and Test the Solution......Page 826
Module 10: Lab Answer Key: Managing Data by Using Microsoft® ASP.NET Dynamic Data ( Visual C#)......Page 829
Exercise 1: Adding dynamic data to an Existing Web Site......Page 830
Exercise 2: Registering Entity Framework with Dynamic Data......Page 835
Exercise 3: Map, Clean, and Test the Solution......Page 839
Module 11: Lab Answer Key: Creating a Microsoft® ASP.NET Ajax-enabled Web Forms Application ( Visual Basic)......Page 842
Exercise 1: Creating a Modal About Box......Page 843
Exercise 2: Customizing Dynamic Data Field Templates with Ajax Server Controls......Page 853
Exercise 3: Adding the Country Import Progress Indicator......Page 855
Module 11: Lab Answer Key: Creating a Microsoft® ASP.NET Ajax-enabled Web Forms Application ( Visual C#)......Page 861
Exercise 1: Creating a Modal About Box......Page 862
Exercise 2: Customizing Dynamic Data Field Templates with Ajax Server Controls......Page 871
Exercise 3: Adding the Country Import Progress Indicator......Page 873
Module 12:
Lab Answer Key: Consuming Microsoft® Windows Communication Foundation Services ( Visual Basic)......Page 878
Exercise 1: Creating a WCF Service Reference Proxy......Page 879
Exercise 2: Calling a WCF Service Method from a Web Form......Page 882
Exercise 3: Implementing WCF Data Services......Page 887
Module 12:
Lab Answer Key: Consuming Microsoft® Windows Communication Foundation Services ( Visual C#)......Page 891
Exercise 1: Creating a WCF Service Reference Proxy......Page 892
Exercise 2: Calling a WCF Service Method from a Web Form......Page 895
Exercise 3: Implementing WCF Data Services......Page 900
Module 13:
Lab Answer Key: Managing State in Web Applications ( Visual Basic)......Page 904
Exercise 1: Examining the View State......Page 905
Exercise 2: Caching the Countries......Page 910
Exercise 3: Displaying a Visitors Counter on the Default Page......Page 915
Module 13:
Lab Answer Key: Managing State in Web Applications ( Visual C#)......Page 920
Exercise 1: Examining the View State......Page 921
Exercise 2: Caching the Countries......Page 926
Exercise 3: Displaying a Visitors Counter on the Default Page......Page 931
Module 14: Lab Answer Key: Configuring and Deploying a Microsoft® ASP.NET Web Application ( Visual Basic)......Page 936
Exercise 1: Configuring the List View Page Size and Enabling the Save Countries Button......Page 937
Exercise 2: Configuring the Visitor Counter......Page 946
Exercise 3: Deploying the Web Application......Page 953
Module 14: Lab Answer Key: Configuring and Deploying a Microsoft® ASP.NET Web Application ( Visual C#)......Page 957
Exercise 1: Configuring the List View Page Size and Enabling the Save Countries Button......Page 958
Exercise 2: Configuring the Visitor Counter......Page 967
Exercise 3: Deploying the Web Application......Page 974
Module 15: Lab Answer Key: Securing a Microsoft® ASP.NET Web Application ( Visual Basic)......Page 979
Exercise 1: Enabling Forms Authentication......Page 980
Exercise 2: Implementing Authorization......Page 990
Exercise 3: Protecting Configuration File......Page 1002
Module 15: Lab Answer Key: Securing a Microsoft® ASP.NET Web Application ( Visual C#)......Page 1008
Exercise 1: Enabling Forms Authentication......Page 1009
Exercise 2: Implementing Authorization......Page 1019
Exercise 3: Protecting Configuration File......Page 1031
Module 16: Lab Answer Key: Implementing Advanced Technologies Supported by Microsoft® Visual Studio® 2010 for Web Development ( Visual Basic)......Page 1037
Exercise: Implementing a Silverlight Application......Page 1038
Module 16:
Lab Answer Key: Implementing Advanced Technologies Supported by Microsoft ® Visual Studio ® 2010 for Web Development ( Visual C#)......Page 1048
Exercise: Implementing a Silverlight Application......Page 1049