Global asax
Common Events :
Application Start
Initializesome resource of application
Application End
Clean upresource
Application Error
Go tounexpected error Page
Application Dispose
Clean up
Session Start
Userspecific data initialize
Session End
Userspecific data finalize
Machine Config
<MachineKeyvalidationKey = “specific Value” Decryption Key=”specific Value” />
·
Validation key is using for encryptview state
·
for web Garden and web farm ,need toset as specific value, for saving view state value during post back.
Web Config
Configuration can be inheritance
For Http://localhost/A/B/C/MyPage.aspx
IIS will apply :
MachineConfig -> web Config -> A folder Web Config -> B Folder Web Config->C folder Web Config
Location
When wantto set more than 1 group of settings for different path , can use location tag
<Locationpath=”” >put this path specific settings</location>
Section class
Create a Section Class
ClassOrderService : ConfigurationSection {
[ConfigurationProperty(“available”,IsRequired…)]
Publicstring Available{get;set;}
}
Configuration
<Configuration>
<ConfigSections>
<sectionname=”OrderService” />
</ConfigSections>
</Configuration>
<OrderServiceavailable = “true” …other attributes/>
…
<System.Web></System.Web>
Use
OrderServicesection = (OrderService)ConfigurationManager.GetSection(“OrderService”);
varavailable = section.Available;
For Nested Configuration
Configuration
<Configuration>
<ConfigSections>
<sectionname=”OrderService” />
</ConfigSections>
</Configuration>
…
<System.Web></System.Web>
Create Section Class
ClassOrderService :ConfigurationSection {
[ConfigurationProperty(“location”,IsRequired=true)]
PublicLocation location{get;set;}
}
ClassLocation : ConfigurationElement{
…
}
Use :
Lbl.Text =section.location.ComputerName ;
Configuration section canbe encrypted
WAT
Web SiteAdministration tool
VS->Website->Asp.net Config
分享到:
相关推荐
1. Building ASP.NET Pages ASP.NET and the .NET Framework ASP.NET is part of Microsoft's overall .NET framework, which contains a vast set of programming classes designed to satisfy any conceivable ...
ASP.NET入门经典ASP.NET入门经典ASP.NET入门经典ASP.NET入门经典ASP.NET入门经典ASP.NET入门经典ASP.NET入门经典ASP.NET入门经典ASP.NET入门经典ASP.NET入门经典ASP.NET入门经典ASP.NET入门经典ASP.NET入门经典ASP...
ASP.NET宝典part1 PDG格式
本书一共分为四篇,第一篇主要讲解了ASP.NE的入门基础知识,内容包括搭建ASP.NET开发环境、C#语言基础、面向对象的程序设计、ASP.NET内置对象、ASP.NET页面语法、ASP.NET站点设计和常用服务器控件。第二篇重点分析了...
北大青鸟ASP.NET教程Part-1
ASP.NET宝典part2 PDG格式
ASP.NET宝典part3 PDG格式
上传人提醒:本书适合了解c#语法的人阅读,看这本书前建议先看C#入门经典 ...本书对于ASP.NET 2.0技术和Visual Studio 2005进行了全面讲解,出色地囊括了读者在实际编程中会用到的ASP.NET的重要特性,十分适合中级读者。
ASP.NET 参考手册 在 W3School,我们提供完整的 ASP.NET 参考手册,其中包括内建对象和组件,以及它们的属性和方法。 ASP.NET 实例 ASP.NET 实例 一系列的 ASP.NET 实例。 内容目录 ASP.NET 简介 本章解释 ASP.NET...
第一部分,后面两部分请下载本人的另外两个包。
ASP.net实战项目ASP.net实战项目ASP.net实战项目ASP.net实战项目ASP.net实战项目ASP.net实战项目ASP.net实战项目ASP.net实战项目ASP.net实战项目ASP.net实战项目ASP.net实战项目ASP.net实战项目ASP.net实战项目ASP...
上传人提醒:本书适合了解c#语法的人阅读,看这本书前建议先看C#入门经典 ...本书对于ASP.NET 2.0技术和Visual Studio 2005进行了全面讲解,出色地囊括了读者在实际编程中会用到的ASP.NET的重要特性,十分适合中级读者。
北大青鸟ASP.NET教程Part-2
ASP.NET 3.5 核心编程 第一部分 需下载本人上传的第二部分。 ASP.NET 3.5核心编程:是下一代Web开发的核心参考书,写方权威经典深入剖析ASP.NET 3.5内部机理。Microsoft ASP.NET已经升级到3.5版。在知名编程专家Dino...
一个弹性的基于ASP.NET 的Flexible ASP.NET Web Part UI Pattern设计模式程序例子。
asp.net经典聊天室asp.net经典聊天室asp.net经典聊天室asp.net经典聊天室asp.net经典聊天室asp.net经典聊天室asp.net经典聊天室asp.net经典聊天室asp.net经典聊天室asp.net经典聊天室asp.net经典聊天室asp.net经典...
Professional ASP.NET 1.1 part1
教师内部光盘 ACCP4.0 Y2 ASP.NET PPT part5
构建高性能可扩展ASP.NET网站.part1 构建高性能可扩展ASP.NET网站.part2
教师内部光盘资料 ACCP4.0 Y2 ASP.NET PPT part2