[转载]C# datetime 操作
摘要://C#里内置的DateTime基本上都可以实现这些功能,巧用DateTime会使你处理这些事来变轻松多了 //今天 DateTime.Now.Date.ToShortDateString(); //昨天,就是今天的日期减一 DateTime.Now.AddDays(-1).ToShortDateString(); //明天,同理,加一 DateTime.Now.AddDays(1).ToSho...
阅读全文
posted @
2010-03-31 13:12
gumarco
阅读(282)
推荐(0)
[转]ScriptManager.RegisterStartupScript用法详解
摘要:ScriptManager.RegisterStartupScript(this.Button1, this.GetType(), "alertScript", "window.open('default2.aspx');", true); 其中第一个参数为要注册脚本的控件ID,试了一下,只要是本页面的就行。 第二个参数为注册脚本控件类型,是控件还是this的GetType()都可以,typeOf...
阅读全文
posted @
2010-01-21 17:35
gumarco
阅读(2051)
推荐(0)