导航

2007年4月11日

摘要: 来源: cannot, but create another column and bind it to the dropdownlist ---- DataTable1.Columns.Add("NewColumn", typeof(string), "Col1 + ':' + Col2"); ... ... 阅读全文

posted @ 2007-04-11 14:25 小西 阅读(707) 评论(0) 推荐(0)

摘要: 以前总是为SQL来控制合计,今天专门写一个,方法很笨,但可行! //页脚 DataGrid 合计 begin if(e.Item.ItemType==ListItemType.Footer) { for(int i = 0;i<e.Item.Cells.Count;i++) { ... 阅读全文

posted @ 2007-04-11 14:22 小西 阅读(1134) 评论(0) 推荐(0)

2007年4月10日

摘要: 打开注册表编辑器,在HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager中找到PendingFileRenameOperations项目,并删除它。这样就可以清除安装暂挂项目---------------------注意不要重启,(不能重启....) 阅读全文

posted @ 2007-04-10 22:18 小西 阅读(153) 评论(0) 推荐(0)

2007年4月9日

摘要: 1. 避免将多个类放在一个文件里面。 2. 一个文件应该只有一个命名空间,避免将多个命名空间放在同一个文件里面。 3. 一个文件最好不要超过500行的代码(不包括机器产生的代码)。 4. 一个方法的代码长度最好不要超过25行。 5. 避免方法中有超过5个参数的情况。使用结构来传递多个参数。 6. 每行代码不要超过80个字符。 7. 不要手工的修改机器产生的代码。 a) 如果需要编... 阅读全文

posted @ 2007-04-09 21:40 小西 阅读(300) 评论(0) 推荐(0)

2007年3月29日

摘要: ORACLE 的存储过程里面 select aaa into var1 from tablea 如果记录为空,会出错.怎么解决?网上有很多解决方案,但我觉得比较可行的还是:begin -----exception when no_data_found then -----end; 阅读全文

posted @ 2007-03-29 10:05 小西 阅读(2531) 评论(0) 推荐(0)

2007年3月1日

摘要: 为了这个问题,我差点要重装系统,好在还是找到了解决方法:Error:Failed to generate a user instance of sql server due to failure in starting the process for the user instance.The connection will be closed.解决方法:将"c:\Documents and Se... 阅读全文

posted @ 2007-03-01 20:03 小西 阅读(161) 评论(0) 推荐(0)

2007年2月24日

摘要: Title //获取GridView选中行的索引值 string Ywbm = GridView1.DataKeys[e.RowIndex].Values[0].ToString(); //获取GridView模板列中的控件 string Ywmc = ((TextBox)GridView1.Rows[e.RowIndex].FindControl("txtYwmc")).Text; strin... 阅读全文

posted @ 2007-02-24 19:53 小西 阅读(336) 评论(0) 推荐(0)

2007年2月16日

摘要: 来源:http://www.microsoft.com/china/msdn/library/architecture/architecture/architecturetopic/ImpWebSec/iwassecmod87.mspx?mfr=true----------------- 构建安全的数据访问 发布日期: 1/10/2005 | 更新日期: 1/10/2005 查看全部的... 阅读全文

posted @ 2007-02-16 21:26 小西 阅读(416) 评论(0) 推荐(0)

2007年2月13日

摘要: 以下就是进行数据库的连接,由于ADO支持的数据库种类繁多,因此连接也相当复杂。从连接类型可以分为两种:1.采用连接字符串;2.使用UDL文件。对于每种方法又有不同的写法。 ①.连接字符串 ===>Access Connect String Provider=Microsoft.Jet.OLEDB.4.0;Data Source=dbtest.mdb Provider=Microsoft.Jet.O... 阅读全文

posted @ 2007-02-13 10:45 小西 阅读(770) 评论(0) 推荐(0)

2007年1月30日

摘要: 这个问题一直困扰着我电脑很长一段时间,终于找到解决方法了......------------------------------------------------事件类型: 错误事件来源: Service Control Manager事件种类: 无事件 ID: 7000日期: 2006-1-6事件: 9:00:30用户: N/A计算机: AFLY描述:由于下列错误,npkcrypt 服... 阅读全文

posted @ 2007-01-30 20:02 小西 阅读(942) 评论(0) 推荐(0)