Learn your way! Get started

ASP.NET Visual Basic 2005: Additional Topics

with experts Andy Baron, Ken Getz


Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack

Release date 7/19/2006
Level Intermediate
Runtime 11h 56m
Closed captioning N/A
Transcript N/A
eBooks / courseware Included
Hands-on labs Included
Sample code Included
Exams Included
Platform Internet Explorer Only


Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More



Course description

In this course you will be introduced to many exciting ASP.NET 2.0 features that will help you get the most out of the .NET Framework and make you a better and more efficient Visual Basic 2005 developer. You will become familiar with the debugging and tracing features in Visual Studio 2005 that help you quickly troubleshoot issues. You will also learn how to read and write XML data using XML DOM, how to work with ASP.NET Profile features and ASP.NET Web Parts, and how to take advantage of creating your own user-defined control. And finally, you will learn how you to build mobile applications using Visual Basic 2005 so your clients can get information on their PDAs and smartphones.

Meet the experts

Andy Baron is a nationally recognized industry expert specializing in Visual Basic, Visual C#, ASP.NET, ADO.NET, SQL Server, and SQL Server Business Intelligence. He is an experienced consultant, author, and editor for several industry publications and speaker at industry conferences. Andy has also been repeatedly selected as a Microsoft MVP for his contributions to Microsoft's online support.

Ken Getz is a featured instructor for several of our Visual Studio courses. He is a Visual Basic and Visual C# expert and has been recognized multiple times as a Microsoft MVP. Ken is a seasoned instructor, successful consultant, and the author or co-author of several best-selling books. He is a frequent speaker at technical conferences like Tech-Ed, VSLive, and DevConnections and he has written for several of the industry's most-respected publications including Visual Studio Magazine, CoDe Magazine, and MSDN Magazine.

Course outline



Module 1

Introduction to XML (39:13)
  • Introduction (02:38)
  • Getting Started with XML (01:33)
  • XML Document Object Model (01:16)
  • Tree-Based XML Handling (04:16)
  • Non-Cached XML Handling (00:36)
  • What is the XML DOM (00:53)
  • Investigating the Sample File (00:25)
  • View Simple.xml (04:21)
  • Load XML Data (01:24)
  • Run the Sample Application (01:36)
  • Code: Load XML Data (03:31)
  • Work with a Node"s Children (01:24)
  • Working with Node"s Children (01:24)
  • Code: Child Nodes (02:45)
  • Iterate through All Nodes (01:01)
  • Code: Iterate All Nodes (02:58)
  • Retrieve Element Nodes (01:28)
  • Code: Rtrv. Element Nodes (03:28)
  • Retrieve Just Text Nodes (00:32)
  • Code: Retrieve Text Nodes (01:11)
  • Summary (00:22)
Using XPath / Searching XML (24:50)
  • Introduction (01:06)
  • Nodes Matching a Criterion (00:50)
  • Getting Started with XPath (01:30)
  • Code: Select Node Details (02:07)
  • More About XPath (01:54)
  • Code: Select Add. Node Dtls. (02:03)
  • Search w/ XML Namespaces (01:07)
  • XML: Srch. XML Namespaces (01:41)
  • Code: Srch. XML Namespaces (03:59)
  • Reference to a Specific Node (00:27)
  • Navigate to Related Nodes (00:58)
  • Retrieve Attributes of a Node (00:52)
  • Code: Select a Single Node (00:59)
  • Code: Retrieve Node Relatives (01:21)
  • Code: Retrieve Attributes (00:51)
  • Code: Retrieve a Single Attrib. (01:38)
  • Summary (01:18)
Creating and Modifying XML (24:09)
  • Introduction (00:53)
  • Create XML Programmatically (00:50)
  • Add Nodes (01:53)
  • Add or Delete Elements (00:50)
  • Remove all Nodes / Attributes (00:17)
  • Code: Create XML (03:43)
  • Code: Modifying Nodes (03:32)
  • Code: Remove All Nodes (00:55)
  • Add / Delete Attributes (00:54)
  • Modify the Value of an Element (00:31)
  • Code: Work with Attributes (03:10)
  • Code: Modify Element (00:34)
  • Code: Modify Attribute (01:38)
  • Determine Well Formed XML (00:20)
  • Handle XML Loading Errors (00:34)
  • View Bad XML (00:49)
  • Code: Handle Exception (00:22)
  • Code: Investigate Errors (00:40)
  • Summary (01:35)

Module 2

Configuring Debugging (34:56)
  • Introduction (00:48)
  • New Debugging Features (03:57)
  • Configuring Debugging (01:34)
  • Config. Project-Level Debug (01:30)
  • Enable Debug in web.config (01:09)
  • Run the Sample (00:56)
  • Setting Breakpoints (03:36)
  • Stepping Through Code (02:29)
  • Customize Debug Toolbar (03:19)
  • Examine Breakpoints Window (01:50)
  • Debug in Break Mode (04:49)
  • DataTips and Visualizers (08:27)
  • Summary (00:28)
Debugging Features (25:04)
  • Introduction (00:35)
  • Breakpoint Menu / Options (02:36)
  • Tracepoints (06:00)
  • Debugging Windows (01:00)
  • Locals Window (01:49)
  • Watch / Quick Watch Window (03:38)
  • Call Stack (01:47)
  • Threads Window (00:40)
  • Exceptions/Handling Errors (00:45)
  • Exception Assistant (02:38)
  • Redirecting Users (03:07)
  • Summary (00:24)
Debugging Javascript and SQL (25:49)
  • Introduction (00:53)
  • Configuring Script Debugging (08:05)
  • Use Script Debugger (02:02)
  • Set Breakpoint in Client Script (01:01)
  • Debug Script in Resource Files (00:32)
  • Use Script Explorer (04:33)
  • Debugging SQL Code (00:41)
  • Working w/ Data Connections (01:53)
  • Debugging Stored Procedures (04:52)
  • Summary (01:14)

Module 3

Introducing Profiles (55:01)
  • Introduction (01:16)
  • Introducing Profiles (01:45)
  • Profile Features (05:11)
  • Strongly Typed Access (02:01)
  • Storing Profile Data (00:48)
  • Explore aspnetdb.mdf (02:31)
  • Considering Profiles (03:08)
  • Configuring Profiles (00:34)
  • Setting up Web.Config (03:11)
  • Adding New Properties (01:29)
  • Creating Property Groups (00:20)
  • Using Custom Types (01:31)
  • SQL Server for Profile Storage (00:29)
  • Configuring SQL Server (02:20)
  • Modifying Provider Behavior (01:19)
  • Investigate machine.config (05:48)
  • Investigate Sample Site (00:21)
  • Default.aspx (02:20)
  • Run the Sample (04:04)
  • Code: UserInfo.aspx (02:06)
  • Code: ProfileManagerDemo (03:53)
  • Code: DisplayInfo.aspx (03:02)
  • Code: Global.asax (00:27)
  • Modify Anon. User Info (03:43)
  • Summary (01:11)
Anonymous / Custom Profiles (25:31)
  • Introduction (01:20)
  • Working w/ Anon. Profiles (01:59)
  • Enable Anonymous Profiles (00:24)
  • Run the Sample (01:13)
  • Migrating Anonymous Users (01:03)
  • Code: Profile_OnMigrateAnon. (04:32)
  • Custom Profile Provider (02:03)
  • Custom XML Profile Provider (03:31)
  • Review the XML File (02:10)
  • Code: Custom Profile Provider (04:17)
  • Cmpr. Profiles/Session State (01:44)
  • Summary (01:09)
Page / Application Tracing (18:53)
  • Introduction (00:50)
  • Two Kinds of Tracing (00:58)
  • Review Trace Output (01:27)
  • Control Tree (01:21)
  • Other Trace Categories (02:20)
  • Server Variables (00:47)
  • Trace.Write-Trace.Warn (02:08)
  • Programmatic Tracing (01:39)
  • Application-Level Tracing (05:36)
  • Output Window Trace (00:59)
  • Summary (00:45)

Module 4

Listeners and Switches (31:21)
  • Introduction (01:14)
  • Trace Switches (02:25)
  • Configure Tracing (03:38)
  • EventLog Listener (00:24)
  • TextWriter Trace Listener (02:32)
  • Cleanup (00:29)
  • Set Up a Trace Listener (06:12)
  • Run the Trace Listener (01:55)
  • System Trace Info (02:46)
  • Trace Listeners (06:21)
  • Trace.axd (02:35)
  • Summary (00:45)
ASP.NET Events (23:54)
  • Introduction (01:01)
  • Overview: Health Monitoring (02:23)
  • Overview: TraceFinished Event (01:38)
  • Code to Generate Trace Msgs. (02:15)
  • Run the Demo (00:33)
  • Create DB to Log Events (03:47)
  • Explore the Database (00:39)
  • Setup HealthMonitoring Config (02:52)
  • View web.config.comments (04:29)
  • Config. App for Event Logging (00:41)
  • Test the Event Logging (03:05)
  • Summary (00:24)
User Controls (18:09)
  • Introduction (01:28)
  • Two-Kinds of UDC (01:17)
  • Creating a User Control (00:55)
  • User Control (01:01)
  • Add User Control to a Page (00:56)
  • Edit User Control (00:30)
  • View the Source (00:55)
  • Add to Existing Functionality (01:48)
  • Investigating the StateList UC (00:43)
  • StateList User Control (00:39)
  • Code: StateList User Control (03:54)
  • Embed the Control on a Page (03:15)
  • Summary (00:42)

Module 5

Custom Controls (43:01)
  • Introduction (01:13)
  • Create a Custom Web Ctrl. (01:24)
  • Add New Control to a Page (04:11)
  • The StateDropDownList Ctrl. (00:30)
  • StateDropDownList Ctrl. (03:07)
  • Rendering the Control (00:50)
  • HtmlTextWriter Class (01:02)
  • Creating the Control (01:03)
  • Adding Control Attributes (02:06)
  • Rendering the Ctrl. Contents (02:04)
  • Code: Control Properties (01:06)
  • Code: Postback Data (00:44)
  • Interact with the Control (01:34)
  • Property Behavior w/Attrib. (03:56)
  • Working with Postback Data (01:37)
  • IPostBackDataHandler Interf. (00:46)
  • Providing a Unique ID (00:16)
  • The PostBack Sequence (01:41)
  • Loading Postback Data (00:52)
  • Raising Postback Events (01:29)
  • Code: Loading Postback Data (02:25)
  • Code: Raising Postback Event (01:35)
  • Specifying a Toolbox Icon (01:14)
  • Create a Toolbox Bitmap (04:47)
  • Summary (01:18)
Web Parts in Action (26:38)
  • Introduction (01:31)
  • Personalize in Browse Mode (08:48)
  • Design Mode (02:03)
  • Edit Mode (03:16)
  • Explore User Control (02:54)
  • The Close Menu Item (00:29)
  • Catalog Mode (06:51)
  • Summary (00:42)
Connecting Web Parts (22:32)
  • Introduction (00:39)
  • Connect Mode (03:40)
  • Utilize the Connect Verb (02:12)
  • Test the Connection (00:52)
  • Test Custom Verb (00:35)
  • Edit Close/Minimize (01:15)
  • Edit Export Mode (03:17)
  • Edit Imported Web Part Cat. (02:01)
  • Edit Properties Within Scope (05:16)
  • Reset My Data (00:58)
  • Reset Shared Data (01:20)
  • Summary (00:20)

Module 6

Web Part Server Controls (21:58)
  • Introduction (00:23)
  • WebPartManager (02:32)
  • ProxyWebPartManager (02:50)
  • WebPartZone (03:12)
  • CatalogZone (01:20)
  • EditorZone (00:40)
  • ConnectionsZone (00:22)
  • View WebParts in the Toolbox (00:37)
  • WebPartManager Review (02:25)
  • WebPartZone Review (01:28)
  • CatalogZone Review (01:08)
  • EditorZone Review (02:59)
  • ConnectionsZone Review (01:33)
  • Summary (00:22)
Coding Web Parts (47:11)
  • Introduction (00:35)
  • Ctrl. Page"s Display Mode (05:26)
  • Ctrl. Personalization Scope (03:35)
  • Resetting Personalization Data (03:38)
  • WebBrowsable/Personalizable (01:46)
  • Web Part Personalization Rev. (03:43)
  • Coding Connections (07:23)
  • Web Part Connections Review (05:57)
  • User Controls As Web Parts (03:40)
  • Custom Controls As Web Parts (05:38)
  • Creating Cust. Web Parts Rev. (05:15)
  • Summary (00:30)
Introducing Mobile Controls (32:15)
  • Introduction (01:00)
  • Problems with the Old (01:05)
  • Many Different Standards (01:10)
  • What Are You To Do (00:29)
  • Overview (00:56)
  • Features (01:12)
  • Developers Tools (00:52)
  • Test Mobile Pages (02:12)
  • How Do Mobile Pages Work (00:47)
  • How Do Mobile Pages Browse (01:48)
  • Simple Mobile Web Page (00:36)
  • Create Mobile Web Page (02:51)
  • Use a StyleSheet Control (01:45)
  • Add / Modify Controls (02:13)
  • Add Code to Controls (01:05)
  • Test the Page in IE (01:05)
  • Test on an Emulator (03:05)
  • Test on SmartPhone Emulator (05:04)
  • Test on PocketPC Emulator (01:53)
  • Summary (00:58)

Module 7

Investigating Mobile Controls (45:37)
  • Introduction (00:43)
  • Container Controls (00:42)
  • Transfer Controls (02:06)
  • Code: Container Controls (01:37)
  • Container Controls (00:33)
  • Code: Transfer Controls (02:52)
  • Transfer Controls (04:21)
  • Text Display Controls (00:24)
  • Compare TextView/Label Ctrl. (00:34)
  • TextView/Label Controls (01:40)
  • List and Selection Controls (00:16)
  • List vs SelectionList Controls (02:19)
  • Code: List/SelectionList Ctrl. (04:17)
  • List/SelectionList Controls (01:50)
  • ObjectList Control (01:01)
  • Demo: ObjectList Control (01:45)
  • Code: ObjectList Control (02:57)
  • Properties: ObjectList Ctrl. (04:13)
  • View in IE Browser (01:00)
  • Validation Controls (01:05)
  • Code: Validation Controls (01:21)
  • Validation Controls (02:49)
  • Image Display Controls (00:14)
  • Miscellaneous Controls (00:39)
  • Calendar Control (03:08)
  • Summary (01:01)
Programmatic Caching (43:54)
  • Introduction (01:03)
  • ASP.NET IIS Tip (02:41)
  • ASP.NET Caching Review (03:30)
  • Overview: Output Caching (02:51)
  • Prog. Expiration Policies (02:33)
  • New Caching Features in 2.0 (03:34)
  • Declarative Output Caching (01:14)
  • Code-Based Output Caching (02:22)
  • Output Cache .aspx Pages (01:22)
  • Programmatic Page Caching (00:56)
  • Declarative Multi-Version (02:03)
  • Code-Based Multi-Version (02:46)
  • Code-Based Data Caching (02:49)
  • Code: Code-Based Data Cach. (05:07)
  • Overview: Caching Data (02:37)
  • Code: Cache.Insert (04:59)
  • Summary (01:18)

Module 8

SQL Cache Dependency (44:07)
  • Introduction (00:50)
  • SqlCacheDependency Object (06:20)
  • Create DB from VS2005 (07:04)
  • Running the DB Project (01:36)
  • Config DB for Cache Dep. (07:28)
  • Enable/List a Table (02:12)
  • SqlCache Tables (01:53)
  • SqlCache Stored Procs. (01:40)
  • Declarative Dependency (03:55)
  • Enable sqlCacheDependency (01:21)
  • Other Cache Settings (00:38)
  • Declarative SqlCacheDep (04:36)
  • SqlDataSource Control (03:57)
  • Summary (00:30)
Query Based Dependencies (42:13)
  • Introduction (00:46)
  • CreateDairyProductsDep. (10:36)
  • View web.config (00:41)
  • SQL2k Query-Based Cach. (02:37)
  • Enable Query Notifications (04:58)
  • View Global.asax (02:21)
  • SQL2k5 Declarative Caching (05:30)
  • SQL Rules for Query Notify (05:26)
  • Use Code to Config. Notify (02:25)
  • SqlDataSource for SQL2k5 (03:50)
  • Query-Based Caching SQL2k5 (02:32)
  • Summary (00:27)