zoukankan
html css js c++ java
表单身份验证(受保护的目录)
根目录下的 web.config
<
authentication
mode
="Forms"
>
<
forms
name
=".COOKIEDEMO"
loginUrl
="bb.aspx"
protection
="All"
timeout
="60"
path
="/"
>
</
forms
>
</
authentication
>
根目录下的.
bb.aspx
if
(
this
.TextBox1 .Text
==
"
abc
"
&&
this
.TextBox2 .Text
==
"
abc
"
)
{
System.Web.Security .FormsAuthentication .RedirectFromLoginPage(
this
.TextBox1 .Text,
false
);
}
else
{
}
根目录下新建一个受保护的目录...
这个目录下的 web.config
<
configuration
>
<
system
.web
>
<
authorization
>
<
deny
users
="?"
/>
</
authorization
>
</
system.web
>
</
configuration
>
demo
https://files.cnblogs.com/gwazy/WebApplication7.rar
查看全文
相关阅读:
FastJson中JSONObject用法
复盘项目模板
java Enum 类型
Java List集合总结
Spring boot 使用Slf4j 日志
java.lang.reflect.UndeclaredThrowableException
Intellij IDEA 中使用 Debug
Java 13位时间戳转换日期格式
Java 时间格式转换
Spring boot 自定义注解
原文地址:https://www.cnblogs.com/gwazy/p/112643.html
最新文章
Python之路【第七篇】:常用模块
Python之路【第六篇】:模块与包
PyCharm快捷键
Python之路【第五篇】: 函数、闭包、装饰器、迭代器、生成器
Python之路【第四篇】: 函数、递归、内置函数
IntelliJ 、Pycharm、webstorm 2017 注册码及注册服务器
python学习之路
android hook getdeceiveid
android ART-逆向研究者的福音?
手机串码 分配查询
热门文章
mac 地址查询
用firebug 进行表单自定义提交
small cell 在安防领域的应用探讨
wifi 定位
压力测试中的一些名词
公钥,私钥
java语句中SQL拼接String字符串
ansible 介绍
jar包和war包的区别
Idea新建项目GroupD和ArtifactID以及项目中的目录结构
Copyright © 2011-2022 走看看