2009年9月4日
摘要: 当前日期加一天SQL:convert(nvarchar(10),dateadd(day,1,getdate()),120)C#:System.DateTime.Now.AddDays(1).ToString("yyyy" + "年" + "MM" + "月"+"dd"+"日"); 阅读全文
posted @ 2009-09-04 16:30 D.Henry 阅读(1533) 评论(0) 推荐(1)
  2009年9月3日
摘要: declare @maxid intdeclare @zhibanren nvarchar(30)declare @shoujihao nvarchar(30)declare @banci nvarchar(5)declare @zhibanshijian datetimeselect @maxid=ID from safe_message_zhibanbiao where day(getdate... 阅读全文
posted @ 2009-09-03 19:58 D.Henry 阅读(2480) 评论(0) 推荐(1)
  2009年7月10日
摘要: 1、首先添加样式<style type="text/css"> .autocomplete_completionListElement{margin : 0px!important;background-color : inherit;color : windowtext;border : buttonshadow;border-width : 1px;border-style : s... 阅读全文
posted @ 2009-07-10 18:15 D.Henry 阅读(584) 评论(0) 推荐(0)
  2009年7月8日
摘要: select * from safe_xiajingzongbiao inner join safe_Department on safe_xiajingzongbiao.kuangbie=safe_Department.DepartmentName where month(shijian)=month(@shijian) and year(shijian)=year(@shijian) orde... 阅读全文
posted @ 2009-07-08 12:13 D.Henry 阅读(211) 评论(0) 推荐(0)
摘要: ALTER PROCEDURE [dbo].[Paper_GetAlreadyCheckedNum] /*(@parameter1 int = 5,@parameter2 datatype OUTPUT)*/ @college nvarchar(30)AS/* SET NOCOUNT ON */ if @college = '研究生院'beginselect count(*) from Paper... 阅读全文
posted @ 2009-07-08 11:08 D.Henry 阅读(356) 评论(0) 推荐(0)
  2009年7月6日
摘要: 主页面代码<frameset rows="91,*,37" cols="*" framespacing="1" frameborder="no" border="0" bordercolor="#3333FF"><frame src="topframe.aspx" name="topFrame" scrolling="no" noresize="noresize" id="top... 阅读全文
posted @ 2009-07-06 10:57 D.Henry 阅读(278) 评论(0) 推荐(0)
  2009年6月19日
摘要: <a href="<%#Eval("PicUrl") %>" target="_blank"><img alt="图片" src="<%#Eval("PicUrl") %>" width="144" /></a>但其中href的地址必须为HTTP形式 阅读全文
posted @ 2009-06-19 21:55 D.Henry 阅读(535) 评论(0) 推荐(0)
  2009年6月16日
摘要: DateTime t1 = datenow; DateTime t2 = Convert.ToDateTime(ipcon.AddTime); int timesp = Convert.ToInt32(((TimeSpan)(t1 - t2)).TotalMinutes); if (timesp < 15) { Page.RegisterStartupScript("ServiceManHi... 阅读全文
posted @ 2009-06-16 19:55 D.Henry 阅读(264) 评论(0) 推荐(0)
  2009年5月20日
摘要: 淡入效果1//渐显方法2:private void ComeOn(){ for (double d = 0.01; d < 1; d += 0.11) { System.Threading.Thread.Sleep(15); Application.DoEvents(); this.Opacity = d; this.Refresh(); }}淡入效果2stringcaozuo="";//窗... 阅读全文
posted @ 2009-05-20 12:25 D.Henry 阅读(251) 评论(0) 推荐(0)
摘要: protected void Button1_Click(object sender, EventArgs e) { System.Diagnostics.Process p = new System.Diagnostics.Process(); System.Diagnostics.ProcessStartInfo pinfo = new System.Diagnostics.ProcessSt... 阅读全文
posted @ 2009-05-20 10:47 D.Henry 阅读(250) 评论(0) 推荐(0)