摘要: GridView.RowDataBound 加入e.Row.RowType == DataControlRowType.DataRow详见:http://msdn.microsoft.com/zh-cn/library/system.web.ui.webcontrols.gridview.rowda... 阅读全文
posted @ 2011-11-03 18:09 顿金 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 通常使用window.open的方式开启新窗口的话 要取得父窗口的控件,可以用window.opener来取得父窗口 然而如果使用showModalDialog的话...却无效 如果有需要的话,需要修改开启的语法以及showModalDialog中的语法 开启语法第2个参数请下self,范例如下 v... 阅读全文
posted @ 2011-11-02 11:42 顿金 阅读(107) 评论(0) 推荐(0) 编辑
摘要: JavaScript CSS Style属性对照表 盒子标签和属性对照CSS语法 (不区分大小写) JavaScript语法 (区分大小写) border border border-bottom borderBottom border-bottom-color borderBot... 阅读全文
posted @ 2011-11-02 11:28 顿金 阅读(118) 评论(0) 推荐(0) 编辑
摘要: HttpContext.Current.Response.AddHeader("P3P", "CP=CAO PSA OUR"); HttpContext.Current.Response.Cookies["homeid"].Value = val; HttpContext.Current.Resp... 阅读全文
posted @ 2011-10-27 16:23 顿金 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: if (Request.Headers["Accept"] == "*/*") return;//防刷新 阅读全文
posted @ 2011-10-27 16:22 顿金 阅读(99) 评论(0) 推荐(0) 编辑
摘要: /*--处理死锁查看当前进程,或死锁进程,并能自动杀掉死进程因为是针对死的,所以如果有死锁进程,只能查看死锁进程当然,你可以通过参数控制,不管有没有死锁,都只查看死锁进程--邹建 2004.4--*//*--调用示例exec p_lockinfo--*/create proc p_lockinfo@... 阅读全文
posted @ 2011-10-14 13:48 顿金 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 代码来源:http://www.cnblogs.com/LCX/archive/2008/12/03/1346924.htmlCreateProcSp_KillAllProcessInDB@DbNameVarChar(100)asifdb_id(@DbName)=NullbeginPrint'Dat... 阅读全文
posted @ 2011-10-14 13:37 顿金 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1. Global.asax 文件 void Application_Start(object sender, EventArgs e) { //在应用程序启动时运行的代码 log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.I... 阅读全文
posted @ 2011-10-10 14:20 顿金 阅读(121) 评论(0) 推荐(0) 编辑
摘要: function GetXmlHttpObject() { var xmlHttp = null; try { // Firefox, Opera 8.0+, Safari xmlHttp = new XMLHttpRequest(); } catch (e) { // Internet Explo... 阅读全文
posted @ 2011-10-09 18:56 顿金 阅读(178) 评论(0) 推荐(0) 编辑
摘要: int aid = Sxmobi.Tools.GetRequestVal("aid", -1); Page page = (Page)HttpContext.Current.Handler; VP2Admin.UC.AlbumSub ucAS = (VP2Admin.UC.AlbumSub)pag... 阅读全文
posted @ 2011-10-09 18:53 顿金 阅读(139) 评论(0) 推荐(0) 编辑