文章列表
 
您正在查看 ".net技术" 分类下的文章

2012-03-29 21:27

A.aspx中

APrincipal user=new Aprincipal();

HttPContext.User=user;

 

B.aspx中

APrincipal user=(APrincipal )HttPContext.User;

这种写法不对,因为这时候的HttPContext.User是System.Security.Principal.GenericPrincipal类型的,

1、这个GenericPrincipal类型的值的User是什么时候赋值给HttPContext.User的呢,原来HttPContext.User保存的应该是APrincipal 类型的呀?

2、在Application_AuthenticateRequest 事件

 
2012-01-31 10:02

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网页特效|Linkweb.cn/Js|---字幕滚动效果---非常酷哦(七)</title>
</head>

<body onload=init()>

<SCRIPT language=JavaScript>
function DynLayer(id,nestref,frame) {
 if (!is.ns5 && !DynLayer.set && !frame) DynLayerInit()
 this.frame = frame || self

 
2011-12-31 14:22
<iframe src=”you page’s url” width=”100″ height=”30″ frameborder=”no” border=”0″ marginwidth=”0″ marginheight=”0″ scrolling=”no” allowtransparency=”yes”></iframe>


<iframe runat="server" src="you page's url" width="750" height="30

 
2011-11-10 11:14

按照2007的方式传入一个字符串格式的日期时间比如2010-11-12 12:12:12,则会报错:指定的值对属性无效

查了半天终于找到原因,2010日起时间格式为:

dateConstantValue1.Value = string.Format("{0}-{1}-{2}T00:00:00Z", dateEnd.Year.ToString(), dateEnd.Month.ToString(), dateEnd.Day.ToString());
http://so

 
2011-10-18 13:33
.net连接池只要在连接字符串里配制就可以了: 

以连接字符串关键字控制Connection Pool 

ConnectionString属性是SQLConnection 对象的一个属性,它支持一个连接串/值对,这个对是用于调整connection pool行为的。下表是ConnectionString 的值及解释。 

名称 
 默认值 
 描述 
  
Connection Lifetime 
 0 
 
   
 
 
文章分类
 
   
 
文章存档
 
     
 
最新文章评论
  

非常感谢啊
 

纪录片《掩埋》。 24万冤魂不会放过她的!
 

”new System.Resources.ResourceManager("工程名.Properties.Resources", typeof(Re
 

梅犯不死,国难不止
 

回复天使的风衣:谢谢,这个相当有用啊!
   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu