Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Introducing Microsoft® WebMatrix™
Foreword
Introduction
Who Should Read This Book
Who Should Not Read This Book
Organization of This Book
System Requirements
Code Samples
Installing the Code Samples
Using the Code Samples
Errata and Book Support
We Want to Hear from You
Stay in Touch
Acknowledgments
1. Introducing WebMatrix
An Introduction to Web Stacks
The ASP.NET Web Pages Stack
The ASP.NET Stack
The PHP on Windows Stack
Installing WebMatrix
Building Your First WebMatrix Application
The WebMatrix Stack
The IIS Express Server
The SQL Server Compact Database
The ASP.NET Web Pages Framework
Summary
2. A Tour of WebMatrix
Launching WebMatrix
The Web Application Gallery
Creating a Site by Using the Web Application Gallery
Creating a Site by Using a Template
Understanding the WebMatrix Workbench
The Site Workspace
Exploring the Ribbon
Managing Site Requests
Managing Site Settings
The Files Workspace
Creating New Files
The Databases Workspace
Creating a Database
Using Tables
Editing Data in a Table
Querying Data
The Reports Workspace
Summary
3. Programming with WebMatrix
Server Programming
Your First Programmed Page
Making Your Page Dynamic
Sending Data to the Server
Summary
4. Using Images in WebMatrix
Creating a Page That Uses an Image
Creating Thumbnails and Links
Programming the Image Tag
Using the WebImage Helper
Using Web.config to Change the Allowed Image Size
Resizing an Image with WebImage
Further Exercises
Summary
5. Using Video in WebMatrix
Using Video in Your Site
Creating a Simple Video Site in WebMatrix
Embedding a Media Player by Using the <object> Tag
Using the Video Helper
Using Flash Video
Using Silverlight Video
Using the HTML5 <video> Tag
Summary
6. Forms and Controls
How Forms Work
A Simple Example
Exploring HTTP Headers with Fiddler
Exploring the Form Controls
Text Boxes
Password Boxes
Option Buttons
The checkbox Control
The TextArea Control
The select Control for Lists
Capturing Form Input
Summary
7. Databases in WebMatrix
Creating a Database with WebMatrix
Using a Database in Code
Adding Data to the Database
Editing Your Database
Deleting Records from the Database
Summary
8. Exposing Your Site Through Social Networking
Sharing Your Site with Others
Using Delicious
Using Digg
Using Google Reader
Using Facebook
Using Reddit
Using StumbleUpon
Using Twitter
Adding Twitter to Your Site
Displaying a Twitter Profile
Displaying Twitter Search Results
Rendering Xbox Gamercards
Summary
9. Adding Email to Your Site
Using Simple Mail Transfer Protocol (SMTP)
Using the WebMail Helper
Building a Simple Email Application
Summary
10. Building a Simple Web Application: Styles, Layout, and Templates
Creating and Styling Your Site
Getting Your Page Ready for CSS
Adding Some Style with CSS
Using CSS Files
Using Layout Pages and Templates
Using RenderBody()
Summary
11. Building a Simple Web Application: Using Data
Creating the Database
Creating a Data Retrieval Page
Creating an Add Data Page
Handling Submitted Data from an Add Form
Adding Data to the Database
Creating an Edit Page
Handling Submitted Data from an Edit Form
Updating the Database
Creating a Delete Data Page
Summary
12. WebMatrix and Facebook
Accessing ASP.NET Web Pages Administration
Installing the Facebook Helpers from NuGet
Getting Started with the Facebook Helpers
Configuring and Initializing Facebook
Using a Facebook Comments Box
Using the Facebook Activity Feed
Using Facebook Recommendations
Using the Facepile Feed
Using the Live Stream Feed
Summary
13. WebMatrix and PayPal
Signing Up for PayPal
Creating a PayPal Sandbox
Using PayPal with WebMatrix
Initializing the PayPal Helper
Creating a Shopping Cart
Running the PayPal-Enabled Bakery
Exploring the PayPalOrder.cshtml Page
Setting Up Other Types of Payment
The Buy Now Button
The Donate Button
The Subscribe Button
Going Further
Going Live
Summary
14. Building Your Own Web Helpers
Using the Microsoft Translator Widget
Creating a Helper for the Widget
Creating a Helper by Using the Translator API
Getting an API Key
Using the Translator API
Creating the Helper
Using the Helper
Summary
15. Deploying Your Site
Finding Web Hosting
Using the Publish Settings Dialog Box
Creating a WordPress-Based Site
Summary
16. WordPress, WebMatrix, and PHP
Creating a WordPress Site
Configuring Your WordPress Site
Posts and Pages
Configuring the Site Theme
Using the Code Editor
Using WebMatrix to Edit WordPress
Creating a Facebook Application
Editing Your Code with WebMatrix
Summary
A. WebMatrix Programming Basics
Getting Started with WebMatrix Programming
Variables and Data Types
Specifying Variables
Converting Variable Types
Common Programming Concepts
Testing Conditions with if and switch
Repeating Code with Loops
Summary
Index
About the Author
← Prev
Back
Next →
← Prev
Back
Next →