.net4.5webform入门(1)开篇介绍

By Erik Reitan |August 14, 2012

DOWNLOAD ASSETS: Getting Started with ASP.NET 4.5 Web Forms - Wingtip Toys (C#) or ASP.NET 4.5 Web Forms Tutorial Series (Visual Basic) by James Chaney

下载资源:Getting Started with ASP.NET 4.5 Web Forms - Wingtip Toys (C#) or ASP.NET 4.5 Web Forms Tutorial Series (Visual Basic) by James Chaney

This tutorial series will teach you the basics of building an ASP.NET Web Forms application using ASP.NET 4.5 and Microsoft Visual Studio Express 2012 for Web.
本系列教程将指导你使用ASP.NET 4.5 和Visual Studio  2012 express 来创建ASP.NET Web 窗体应用程序所需的基础知识。

Introduction

介绍

This series of tutorials guides you through the steps required to create an ASP.NET Web Forms application using Visual Studio Express 2012 for Web and ASP.NET 4.5.

本系列教程将指导你使用ASP.NET 4.5 和Visual Studio  2012 express 来创建ASP.NET Web 窗体应用程序所需的步骤。

The application you'll create is named Wingtip Toys. It's a simplified example of a store front web site that sells items online. This tutorial series highlights several of the new features available in ASP.NET 4.5.

我们接下来创建的应用程序名为 Wingtip Toys它是在线电子商务网站前台 web 站点的简化示例。这个教程系列突出了几个ASP.NET 4.5 中可用的新功能。

Comments are welcome, and we'll make every effort to update this tutorial series based on your suggestions.

Download completed project

下载已完成项目

You can download a C# or Visual Basic project that contains the completed tutorial.

你可以下载一个包含完整C#或VB代码的项目文件

Audience

目标群体

The intended audience of this tutorial series is experienced developers who are new to ASP.NET Web Forms. A developer interested in this tutorial series should have the following skills:

本教程系列的目标群体是经验丰富的开发人员(但在 ASP.NET Web 窗体这方面算个菜鸟的)。对这个系列教程有兴趣的开发人员应该具有以下技能:

  •  Familiar with an object oriented programming language
  •  Familiar with Web development concepts (HTML, CSS, JavaScript)
  •  Familiar with relational database concepts
  •  Familiar with n-tier architecture concepts
    • 面向对象熟悉的编程语言
    • 熟悉 Web 开发的概念 (HTML、 CSS、 JavaScript)
    • 熟悉关系数据库概念
    • 熟悉 n 层体系结构的概念
 

Application Features

应用程序功能

The ASP.NET Web Form features presented in this series include:

在这一系列中介绍的 ASP.NET Web 窗体的功能包括:

  •  The Web Application Project (not Web Site Project)
  •  Web Forms
  •  Master Pages, Configuration
  •  Entity Framework Code First, LocalDB
  •  Request Validation
  •  Strongly Typed Data Controls, Model Binding, Data Annotations, and Value Providers
  •  OAuth and OpenID
  •  ASP.NET Membership, Configuration and Authorization
  •  Unobtrusive Validation
  •  Routing
  • Web 应用程序项目 (不是网站项目)
  • Web 窗体
  • 母板页,设置
  • Entity Framework Code First,LocalDB
  • 请求验证
  • 强类型化的数据控件,模型绑定,数据批注,和供应商的价值
  • OAuth 和 OpenID
  • ASP.NET 成员资格、 配置和授权
  • 隐式验证
  • 路由

Application Scenarios and Tasks

应用场景和任务

Tasks demonstrated in this first series include:

这一系列中演示的任务包括:

 

  •  Creating, reviewing and running the new project
  •  Creating the database structure
  •  Initializing and seeding the database
  •  Customizing the UI using styles, graphics and a master page
  •  Adding pages and navigation
  •  Displaying menu details and product data
  •  Creating a shopping cart
  •  Adding OpenID support
  •  Adding a payment method
  •  Including an administrator role and a user to the application
  •  Restricting access to specific pages and folder
  •  Uploading a file to the web application
  •  Implementing input validation
  •  Registering routes for the web application
  •  Implementing error handling and error logging
    • 创建、 查看和运行新项目
    • 创建数据库结构
    • 初始化和建立数据库
    • 使用样式、 图形和母版页来自定义 UI
    • 添加页面和导航
    • 显示菜单的详细信息及产品数据
    • 创建一个购物车
    • 添加支持 OpenID
    • 添加一种付款方法
    • 包括管理员角色和用户应用程序
    • 限制对特定的网页和文件夹的访问
    • 将文件上传到 web 应用程序
    • 实现输入验证
    • 注册的 web 应用程序的路由
    • 实现错误处理和错误日志记录

Overview

概述

If you are new to ASP.NET Web Forms but have familiarity with programming concepts, you have the right tutorial. If you are already familiar with ASP.NET Web Forms, you can benefit from this tutorial series by the new features available in ASP.NET 4.5. If you are unfamiliar with programming concepts and ASP.NET Web Forms, see Getting Started on the ASP.NET Web site.

如果你对 ASP.NET Web 窗体一窍不通但熟悉编程概念,那你就来对地方了。如果您已经熟悉 ASP.NET Web 窗体,你也可以从这个系列教程中熟悉 ASP.NET 4.5 中提供的新功能。但如果你对编程概念和 ASP.NET Web 窗体都不熟悉,还是先去ASP.NET Web 站点上看看入门吧。

The following screen shots provide a quick view of the ASP.NET Web forms application that you will create in this tutorial series. When you run the application from Visual Studio Express 2012 , you will see the following web Home page.

下面的屏幕截图就是我们将在这个教程中建立的项目。在 Visual Studio  2012 Express 中运行 这个项目时,您将看到下面的 web 主页。

You can register as a new user, or log in as an existing user. Navigation is provided at the top for each product category. Each time the Home page is reached, one of the available products from the database will be displayed.

您可以注册成为新用户,或用已有的用户身份登录。顶部为每个产品类别提供了连接。点击链接,则一种商品会被显示

By selecting the Products link, you will be able to see a list of all available products.

通过选择产品链接,你将能够看到所有可用的产品。

You can also see individual product details by selecting any of the listed products.

您还可以通过选择任何列出的产品来查看商品的详细信息。

As a user, you can register and log in using the default functionality of the Web Forms template. Also, this tutorial explains how to login using an existing gmail account.

作为用户,您可以注册和登录使用默认模板功能的 Web 窗体。此外,本教程介绍了如何使用现有的 gmail 帐号登录。

 

.net4.5webform入门(1)开篇介绍_第1张图片

Once you have logged in, you can add products to the shopping cart and checkout with PayPal.

一旦您已经登录,您可以向购物车添加产品和用 PayPal结账 。

.net4.5webform入门(1)开篇介绍_第2张图片

PayPal will confirm your account, order, and payment information.

PayPal 会确认您的帐户、 订单和付款信息。

.net4.5webform入门(1)开篇介绍_第3张图片

After returning from PayPal, you can review and complete your order.

从 PayPal 返回之后,您可以查看并完成您的订单。

.net4.5webform入门(1)开篇介绍_第4张图片

Erik Reitan

By Erik Reitan, Erik Reitan is a Senior Programming Writer at Microsoft. During his spare time he enjoys developing Windows Phone and Windows 8 apps. Follow him on Twitter at @ReitanErik.

 

 

MSP(Microsoft Student Partners)是微软公司针对高校

大学生在全球范围内所设立的项目。旨在鼓励那些在校园里积极倡导、推动创新实践,

乐于积极帮助他人的优秀学生,给他们提供微软最前沿的技术资源,以及更广泛的交流、展示自我的平台。   

MSP项目面向所有热爱技术、勇于创新、积极推动创新实践、愿意和他人分享自己所学的在校大学生,并不仅仅局限于技术类背景的学生。

如果你喜欢的话,欢迎加入。地址

http://msdn.microsoft.com/zh-cn/jj889435.aspx

 





你可能感兴趣的:(webform)