易截截图软件、单文件、免安装、纯绿色、仅160KB

asp.net 身份验证

1、给web.config添加<authentication>元素
2、给web.config文件添加<forms>元素
<forms name=".aspxauth" loginUrl="Login.aspx" protection="All" timeout="30" path="/" requireSSL="false" slidingExpiration="true" cookieless="UseDeviceProfile"></forms>
3、FormsAuthentication.RedirectfromLoginPage("sdsdsd", true); 设置cookie
4、FormsAuthentication.Authenticate("12", "12") 根据web.config配置验证
web.config配置
  <authentication mode="Forms">
   <forms name=".aspxauth" loginUrl="Login.aspx" protection="All" timeout="30" path="/" requireSSL="false" slidingExpiration="true" cookieless="UseDeviceProfile">
        <credentials passwordFormat="Clear">
          <user name="12" password="12"/>
        </credentials>
      </forms>
  </authentication>


相关文档:

ASP.NET 页面中 滚动当前系统时间

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Admin_Default3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script language="javascript" type ="text/javascript"> ......

浅谈ASP.NET中的三种会话状态

浅谈ASP.NET中的三种会话状态
     常用的ASP.NET的会话状态中有三种.分为进程内会话状态、状态服务器会话状态、SQL Server 会话状态
   
     先谈谈进程内会话状态(Inprocess)这是一种默认的模式,但是只要在Web.config中进行简单的配置就可进行更改,具体 ......

一个讲解ASP.NET很详细的博客

最近在和一个同学编写一个管理系统的时候,要用到GridView控件,结果在CSDN里面找到一个博客,这些讲得很详细,提供一个地址给大家参考吧
http://blog.csdn.net/21aspnet/archive/2007/03/25/1540301.aspx
还有一个就是百度空间里面的:http://hi.baidu.com/%BA%AB%C7%EC%D5%EA/blog/item/c0b717daa312fb3f33fa1c91.html ......

asp.net 1.1 的应用程序兼容firefox

asp.net 1.1 的应用程序,默认是不支持firefox的
iis会根据请求的user-agent 来判断浏览器类型,如果浏览器达不到要求,返回的html会渲染有问题
比方说 多行的textbox在firefox下不会渲染出width和height,是默认大小
原因是asp.net 1.1时,firefox还不强大,没有被microsoft注意到
其实可以在web.config里配置一下,让 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号