Introducing ASP.NET Web Pages 2.pdf
(
3132 KB
)
Pobierz
Introducing ASP.NET Web Pages 2
Mike Pope
Summary
: This set of tutorials gives you an overview of ASP.NET Web Pages
(version 2) and Razor syntax, a lightweight framework for creating dynamic
websites. It also introduces WebMatrix, a tool for creating pages and sites. The
tutorials take you from novice programmer through seeing your site live on the
Internet. Topics include how to install Microsoft WebMatrix (a set of tools for
creating sites); how to work with forms; how to display, add, update, and delete
data; how to create a consistent site layout; and how to publish to the Web.
Category:
Step-by-Step
Applies to
: ASP.NET Web Pages 2 RC, Visual Studio 2012 RC
Source
: ASP.NET site
(
link to source content
)
E-book publication date
: June 2012
Copyright © 2012 by Microsoft Corporation
All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any
means without the written permission of the publisher.
Microsoft and the trademarks listed at
http://www.microsoft.com/about/legal/en/us/IntellectualProperty/Trademarks/EN-US.aspx a
re trademarks of the
Microsoft group of companies. All other marks are property of their respective owners.
The example companies, organizations, products, domain names, email addresses, logos, people, places, and
events depicted herein are fictitious. No association with any real company, organization, product, domain name,
email address, logo, person, place, or event is intended or should be inferred.
This book expresses the author’s views and opinions. The information contained in this book is provided without
any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or
distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this
book.
Introducing ASP.NET Web Pages 2
Tutorial 1: Getting Started
2
Contents
Tutorial 1: Getting Started ............................................................................................................. 4
Tutorial 2: Programming Basics ................................................................................................... 19
Tutorial 3: Displaying Data........................................................................................................... 39
Tutorial 4: HTML Form Basics ...................................................................................................... 56
Tutorial 5: Entering Database Data by Using Forms...................................................................... 70
Tutorial 6: Updating Database Data ............................................................................................. 82
Tutorial 7: Deleting Database Data .............................................................................................. 97
Tutorial 8: Creating a Consistent Layout .................................................................................... 104
Tutorial 9: Publishing a Site by Using WebMatrix ....................................................................... 118
Appendix: Code Listings............................................................................................................. 127
This set of tutorials gives you an overview of ASP.NET Web Pages (version 2) and Razor syntax, a
lightweight framework for creating dynamic websites. It also introduces WebMatrix, a tool for
creating pages and sites.
Level
: New to ASP.NET Web Pages.
Skills assumed
: HTML, basic cascading style sheets (CSS).
Prerequisites
: Windows XP SP3 or later. (See
What Do You Need?
l
ater for more details.)
Downloads
:
Completed website for the ASP.NET Web Pages introductory tutorial
Note
This tutorial is based on the ASP.NET Web Pages version 2 RC and Microsoft
WebMatrix 2 RC.
Introducing ASP.NET Web Pages 2
Tutorial 1: Getting Started
3
Tutorial 1: Getting Started
What you'll learn in the first tutorial of the set:
What ASP.NET Web Pages technology is and what it's for.
•
•
What WebMatrix is.
•
How to install everything.
•
How to create a website by using WebMatrix.
Features/technologies discussed:
Microsoft Web Platform Installer.
•
•
WebMatrix.
.cshtml
pages
•
What Should You Know?
We're assuming that you're familiar with:
HTML
. No in-depth expertise is required. We won't explain HTML, but we also don't use
anything complex. We'll provide links to HTML tutorials where we think they're useful.
•
Cascading style sheets (CSS)
. Same as with HTML.
•
•
Basic database ideas
. If you've used a spreadsheet for data and sorted and filtered the
data, that's the level of expertise we're generally assuming for this tutorial set.
We're also assuming that you're interested in learning basic programming. ASP.NET Web Pages
use a programming language called C#. You don't have to have any background in programming,
just an interest in it. If you've ever written any JavaScript in a web page before, you've got plenty
of background.
Note that if you are familiar with programming, you might find that this tutorial set initially moves
slowly while we bring new programmers up to speed. As we get past the first few tutorials,
though, there will be less basic programming to explain and things will move along at a faster clip.
Introducing ASP.NET Web Pages 2
Tutorial 1: Getting Started
4
Plik z chomika:
ferdekiepski
Inne pliki z tego folderu:
656949ebook.pdf
(21575 KB)
Configure Kerberos Authentication for SharePoint 2010 Products.pdf
(22619 KB)
693616ebook.pdf
(2572 KB)
AGM_BitLocker_Administration_and_Monitoring_1.0.pdf
(1593 KB)
AGM_Application_Virtualization_(App-V)_5.0.pdf
(1605 KB)
Inne foldery tego chomika:
Zgłoś jeśli
naruszono regulamin