摘要: 在HttpHandlers中使用Session 如果在实现IHttpHandler接口时没有实现IReadOnlySessionState接口,那么就无法使用Session,只要用到Session的地方就会报错"未启用Session服务"的错误,让设置enableSessionState=true. 如果想使用Session,就必须再实现一个IReadOnlySessionState的接口i ... 阅读全文
posted @ 2008-06-10 09:53 lswweb 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 例: decimal a= (decimal) ( 1 / 2 ); //a的值是 0 declmal b= (decimal) ( (decimal)1 / (decimal)2 ) //b的值是0.5 阅读全文
posted @ 2008-04-22 12:06 lswweb 阅读(147) 评论(0) 推荐(0) 编辑
摘要: public class DataAccess { protected static readonly string _path = ConfigurationSettings.AppSettings["WebDAL"]; public static IDAL.ITreeTable CreatTreeTable(string tableName, string id... 阅读全文
posted @ 2008-01-12 10:04 lswweb 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 在XHTML下所有的元素高度都默认为auto,所以设置一个body内的元素高度为100%时因body的高度是auto所以没有效果,需要先将htm,和body元素的高度设置为100%。 因为.net当中所有的元素都放在当中所以在一些浏览器上边也需要把form元素的高度设置为100% 例如:opera 阅读全文
posted @ 2007-12-14 12:03 lswweb 阅读(226) 评论(0) 推荐(0) 编辑