上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页

2008年3月10日

javascript:window.showModalDialog缓存问题

摘要: window.showModalDialog会有缓存,导致第二次不进入pageload,解决方法:跟一个随机的参数: var time =new Date(); var iWidth=840; var iHeight=350; var retval = window.showModalDialog('CustomerChargeDetail.aspx?HouseID=' + HouseParam+... 阅读全文

posted @ 2008-03-10 14:43 优雅小猪 阅读(2779) 评论(3) 推荐(0) 编辑

2008年2月21日

sqlserver数据库datatime类型用c#访问

摘要: 1.判断是否为NULL dt.Rows[i]["TheDate"] is System.dbnull2.截取日期:先转换为DateTime,再使用ToString()方法 ((DateTime)dt.Rows[i]["TheDate"]).ToString("yyyy-MM-dd")3.得到本月第一天和最后一天 BeginDate.Text = System.DateTime.Now.ToStri... 阅读全文

posted @ 2008-02-21 10:19 优雅小猪 阅读(1616) 评论(0) 推荐(0) 编辑

2008年1月22日

接口实现和显式接口实现

摘要: 显示接口实现只能用接口实例去访问,而不能用类实例去访问 阅读全文

posted @ 2008-01-22 16:45 优雅小猪 阅读(189) 评论(0) 推荐(0) 编辑

2008年1月8日

windows命令

摘要: winver---------检查Windows版本 wmimgmt.msc----打开windows管理体系结构(WMI) wupdmgr--------windows更新程序 wscript--------windows脚本宿主设置 write----------写字板 winmsd---------系统信息 wiaacmgr-------扫描仪和照相机向导 winchat--------XP... 阅读全文

posted @ 2008-01-08 11:45 优雅小猪 阅读(173) 评论(0) 推荐(0) 编辑

2008年1月2日

tsql的right函数

摘要: UPDATE SH_MaterialClass SET [OrderID]=right(Code,2) WHERE [OrderID] IS NULL right('0000'+'"+ht["iOrderID"].ToString()+"',5) 阅读全文

posted @ 2008-01-02 18:18 优雅小猪 阅读(1377) 评论(0) 推荐(0) 编辑

2007年12月27日

删除用reference建立的外键

摘要: 由于用reference建立的外键名字不确定,故用以下方法:DECLARE @name VARCHAR(100) SELECT @name =NAME FROM dbo.sysobjects where name like 'FK__Card_Cust__CardN__%' and OBJECTPROPERTY(id, N'IsForeignKey') = 1 exec('Alter Table ... 阅读全文

posted @ 2007-12-27 14:15 优雅小猪 阅读(364) 评论(0) 推荐(0) 编辑

2007年11月27日

DELETE,UPDATE与LEFT JOIN

摘要: UPDATE:UPDATE A SET ApproverID=NULL,ApproveDate=NULL,ApproveResult=100,CheckerID=null,CheckDate=null, IsCheck=0 FROM [SH_MaterialApplyBuyBill] A LEFT JOIN [SH_MaterialApplyBuyBillDetail] B ON A.ID=B.[... 阅读全文

posted @ 2007-11-27 13:39 优雅小猪 阅读(5946) 评论(1) 推荐(1) 编辑

System.Windows.Forms.Form.CheckForIllegalCrossThreadCalls = false;

摘要: System.Windows.Forms.Form.CheckForIllegalCrossThreadCalls = false; 阅读全文

posted @ 2007-11-27 13:37 优雅小猪 阅读(858) 评论(0) 推荐(0) 编辑

2007年11月26日

vs2005的DataGridView行选中和选中行可见

摘要: this.dataGridView1.ClearSelection();this.dataGridView1.Rows[i].Selected = true; this.dataGridView1.CurrentCell = this.dataGridView1.Rows[i].Cells[1]; 阅读全文

posted @ 2007-11-26 15:16 优雅小猪 阅读(1235) 评论(0) 推荐(0) 编辑

2007年11月7日

在.net中使用ajaxpro实现ajax效果的步骤

摘要: 1.web项目中导入ajaxpro.dll 2.webconfig中加入: <system.web> <httpHandlers> <add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro" /> </httpHandlers> <... 阅读全文

posted @ 2007-11-07 10:37 优雅小猪 阅读(300) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页

导航