码迷,mamicode.com
首页 > Web开发 > 详细

ASP.NET站点安全

时间:2014-12-19 20:32:43      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:

<configuration>
	<appSettings/>
	<connectionStrings>
		<add name="MyBookShop" connectionString="Data Source=.\sqlexpress;DataBase=MyBookShop;Integrated Security=true"/>
		<!--<add name="MyBookShop" connectionString="Data Source=.\sqlexpress;DataBase=MyBookShop;uid=sa;pwd=123456"/>-->
	</connectionStrings>
	<location path="CheckCode.aspx">
		<system.web>
			<authorization>
				<allow users="*"/>
			</authorization>
		</system.web>
	</location>
	<system.web>
		<!-- 
            设置 compilation debug="true" 将调试符号插入
            已编译的页面中。但由于这会 
            影响性能,因此只在开发过程中将此值 
            设置为 true。
        -->
		<compilation debug="true" targetFramework="4.0">
		</compilation>
		<!--
            通过 <authentication> 节可以配置 ASP.NET 使用的 
            安全身份验证模式,
            以标识传入的用户。 
        -->
		<authentication mode="Forms">
			<forms name="MyBookShop" loginUrl="Login.aspx"></forms>
		</authentication>
		<authorization>
			<deny users="?"/>
		</authorization>

 

ASP.NET站点安全

标签:

原文地址:http://www.cnblogs.com/codemouserman/p/4174564.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!