文章分类 -  C#

Winform中修改UserAgent的方法
摘要:[代码] 阅读全文

posted @ 2010-05-07 13:57 廖勇军 阅读(1349) 评论(1) 推荐(0) 编辑

[转] 相对路径
摘要:一、获取当前文件的路径1. System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName 获取模块的完整路径,包括文件名。2. System.Environment.CurrentDirectory 获取和设置当前目录(该进程从中启动的目录)的完全限定目录。3. System.IO.Directory.GetCurrentDi... 阅读全文

posted @ 2010-01-19 17:44 廖勇军 阅读(581) 评论(0) 推荐(0) 编辑

用DataReader 分页与几种传统的分页方法的比较
摘要:对于数据库的分页,目前比较传统的方法是采用分页存储过程,其实用 DataReader 也可以实现分页,不需要写存储过程,实现效率上也比几种比较流行的分页方法要略快。   在开始这个方法之前,让我们先创建一个简单的测试环境:use TestGO  if exists (select * from sysobjects where id = object_id('R_Student') and typ... 阅读全文

posted @ 2009-12-07 12:37 廖勇军 阅读(530) 评论(0) 推荐(0) 编辑

INI文件读写
摘要:INI文件读写,简单的数据用不着数据库,INI文件即可。 阅读全文

posted @ 2009-02-15 17:40 廖勇军 阅读(146) 评论(0) 推荐(0) 编辑

JS调用后台方法大全
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->javascript函数中执行C#代码中的函数:方法一:1、首先建立一个按钮,在后台将调用或处理的内容写入button_click中; 2、在前台写一个js函数,内容为documen... 阅读全文

posted @ 2008-11-17 10:04 廖勇军 阅读(2315) 评论(1) 推荐(0) 编辑

UBB(c#完整版)
摘要:UBB(c#完整版) 阅读全文

posted @ 2007-09-03 22:11 廖勇军 阅读(1726) 评论(2) 推荐(0) 编辑

获取控件模板中的控件
摘要:获取Repeater中Footer/HeaderTemplate 中的控件 foreach (RepeaterItem item in rptEnquiries.Controls){ if (item.ItemType == ListItemType.Footer) { item.FindControl("btnSend1").Visible = true;... 阅读全文

posted @ 2007-08-14 22:56 廖勇军 阅读(262) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示