网站导航免费论文 原创论文 论文搜索 原创论文 网学软件 学术大家 资料中心 会员中心 问题解答 原创论文 大学论文导航 设计下载 最新论文 下载排行 原创论文 论文源代码
返回网学首页
网学联系
最新论文 推荐专题 热门论文 素材专题
当前位置: 网学 > 编程文档 > ASP.net > 正文

MigratingfromASP.NET1.xtoASP.NET2.0

来源:http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 12/10/12
his version of the calendar uses the Basic Blue theme. By simply changing the theme attribute, you can completely change the look of the calendar, as shown in Figure 14.

figure 14. Calendar with the Smoke and Glass theme

Skins

a skin is a set of properties and templates that can be used to standardize the size, font, and other characteristics of controls on a page. You can use skins to create pre-defined display settings for a control and apply the appropriate skin at run time. You might, for example, select a skin based on a user preference, or determine the appropriate skin based on the browser used to access the page. Optional skins can be applied to pre-defined controls by setting the skinid property

<!- Default Skin -->!><asp: label runat="server" Font-names="verdana, arial" font-size="10pt"      ForeColor= "#000066" BackColor="transparent"/><!- Title Skin -->!><asp: label runat="server" id="foo" skinid="Title"       Font-names="verdana, arial"      font size="18pt" ForeColor= "#000066"       BackColor="transparent" font-bold="true"      font-underline="true"/>

once a skin has been defined, you can apply it to all the controls on a page or to a specific control using themes and the skinid property built into all skinable controls.

Applying a Skin to a Control

if a default skin exists and the page is defined by a theme, the default skin will automatically be applied to a control. If you define the skinid property for the control, the default skin will be replaced by the skin referenced in the skinid property. This property can be configured during development or at run time (with a page refresh).

Membership

one of the major drawbacks of ASP development is that user management schemes must be created from scratch. This process is not only complex, but time consuming. The membership provider and login controls in ASP.NET 2.0 provide a unified way of managing user information.

any time a user logs into your application, you can automatically reference their identity as well as basic user information. The user''s credentials are securely stored in a backend user database that you can configure in the Web.config file. ASP.NET 2.0 provides both Microsoft Access and Microsoft SQL Server providers, but you can create custom providers for any type of backend data store. This extensibility is extremely helpful if you already have an account database that you want to use with the membership feature in ASP.NET. After you configure membership for your application, you can use Login Controls in ASP.NET 2.0 to automate user registration and password retrieval.

Login Controls

asp.net 2.0 offers new login controls to help create and manage user accounts without writing any code. You can simply drag a <asp:createuserwizard> control onto a page to create a user registration form that offers a step-by-step wizard to walk users through the registration process.

the new login controls provide an intuitive interface that allows you to format

网学推荐

免费论文

原创论文

设为首页 | 加入收藏 | 论文首页 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved 湘ICP备09003080号