yuanweisen

 

2008年12月31日

一个SQL函数,关于日期转换成星期的功能

摘要: SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS OFF GO /* 该函数返回当前日期的前一星期的周一,周五,周日以及13周以前的周一日期 */ ALTER FUNCTION dbo.PreviousWeek (@Day as varchar(50)) Returns @table table(PreviousMonday varchar(20)... 阅读全文

posted @ 2008-12-31 13:56 袁 阅读(1364) 评论(0) 推荐(0) 编辑

2008年12月10日

编辑器FCK的使用

摘要: 注意,要在页面首部加 阅读全文

posted @ 2008-12-10 17:19 袁 阅读(175) 评论(0) 推荐(0) 编辑

2008年12月9日

后台的父类

摘要: /// /// 当前员工 /// public Employee CurrentMaster { get { if (Session["CurrentMaster"] == null) return null; ... 阅读全文

posted @ 2008-12-09 18:28 袁 阅读(176) 评论(0) 推荐(0) 编辑

前台的父类

摘要: 当然要继承基类了 /// /// 当前用户 /// public Patient CurrentPatient { get { if (Session["CurrentPatient"] == null) re... 阅读全文

posted @ 2008-12-09 18:20 袁 阅读(120) 评论(0) 推荐(0) 编辑

做项目中会用到的一些共公的方法

摘要: 1 弹出Alert后再转向某页面 /// /// 弹出Alert然后转向 /// /// /// protected void ShowAlertAndRedirect(string msg, string url) { ResponseScript("alert('"... 阅读全文

posted @ 2008-12-09 18:18 袁 阅读(180) 评论(0) 推荐(0) 编辑

做项目时要注意的地方

摘要: 1 在项目分前后台的时候,有时候前台打开的文章列表,某些文章这时可能就被管理员删除了,这时会报错,所以要给出提示,不能报黄页错误,代码比较简单 Business.HealthEducation MyHE = new Business.HealthEducation(); MyHE = Business.HealthEducation.GetModel(HE_id);... 阅读全文

posted @ 2008-12-09 17:23 袁 阅读(191) 评论(0) 推荐(0) 编辑

2008年12月8日

用到的CSS样式

摘要: padding-top:顶部填充象素 float:浮动的方式,比如=left的时候就可劲的往左漂 line-height :行间高度 height:本身像素的高度 margin-right:表示元素的外右边距 实例:documentlist li a { float: left; padding-top: 1px; height: 24px; line-height: 24px; } 表示在类do... 阅读全文

posted @ 2008-12-08 17:29 袁 阅读(123) 评论(0) 推荐(0) 编辑

几个简单的脚本(怕忘记)

摘要: 后退到上一历史页面:onclick="javascript:history.go(-1);" 返回到某一页面:onclick="window.location='HealthEducationDisplay.aspx'" 阅读全文

posted @ 2008-12-08 09:49 袁 阅读(163) 评论(0) 推荐(0) 编辑

2008年12月3日

在一个项目中所有的Ajax功能用一个页面来实现

摘要: 在一个项目中用到了ajax异步,需要由一个aspx页面的pageload事件来读取后台数据,如果有多少个ajax功能就写多少个页面,不可取,可用一个页面来实现,代码如下:ajaxPage.aspx页面代码: protected void Page_Load(object sender, EventArgs e) { string Action = Xk... 阅读全文

posted @ 2008-12-03 19:31 袁 阅读(599) 评论(4) 推荐(0) 编辑

Request.QueryString如果接到空值,则返空字符方法

摘要: public static string Q(string name) { if (GetCurrentRequest().QueryString[name] == null) return string.Empty; else return GetCurrentRequ... 阅读全文

posted @ 2008-12-03 19:00 袁 阅读(677) 评论(0) 推荐(0) 编辑

导航