2007年8月22日
摘要:
new System.EventHandler,注册事件
阅读全文
posted @ 2007-08-22 18:24
一路前行
阅读(5428)
推荐(1)
摘要:
方法一: DateTime.Today.AddDays(-1).ToString("yyyy-MM-dd") 方法二: TimeSpan span = new DateTime(2005,2,11,22,22,44,555) - new DateTime(2004,9,1,1,1,1,1); int int_day=span.Days; int i...
阅读全文
posted @ 2007-08-22 11:30
一路前行
阅读(4860)
推荐(0)
2007年8月21日
摘要:
1.增加GridView的GVSelect_RowDataBound事件 protectedvoid GVSelect_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { //...
阅读全文
posted @ 2007-08-21 11:03
一路前行
阅读(873)
推荐(0)
摘要:
protected void grvReportList_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { int iAuditing = Convert.ToInt32(DataBinder.Eva...
阅读全文
posted @ 2007-08-21 10:51
一路前行
阅读(1301)
推荐(0)
2007年8月19日
摘要:
测试 测试表格 测试表格 测试表格 测试表格文字
阅读全文
posted @ 2007-08-19 12:29
一路前行
阅读(340)
推荐(0)
2007年8月17日
摘要:
TD在IE7不能浏览的问题解决办法:IE7自从Beta到现在正式release英文版已经很长时间了,在IE7下浏览不了testdirector的问题解决方案:1、以系统管理员身份登录TD服务器;2、找到C:\Inetpub\TDBIN目录,用编辑器打开start_a.htm;3、找到变量fMSIE3456,在后面加一句脚本:(ua.lastIndexOf('MSIE 7.0') != -1),照猫...
阅读全文
posted @ 2007-08-17 15:14
一路前行
阅读(687)
推荐(0)
2007年8月16日
摘要:
(1)方法一:string fileName="中文.xls"; string filePath = @"/UpLoad/Reports" FileInfo file = new FileInfo(System.Web.HttpContext.Current.Server.MapPath(filePath)+fileName); Response.Charset = "utf-8"; Re...
阅读全文
posted @ 2007-08-16 19:06
一路前行
阅读(5816)
推荐(0)
2007年8月15日
posted @ 2007-08-15 11:27
一路前行
阅读(313)
推荐(0)
2007年8月11日
摘要:
如果访问该共享目录的是Windows XP系统,则可以在“控制面板→用户账户”,再选择欲设置的账户,再点击左侧的“管理我的网络密码”项并在打开的窗口中删除相应的密码项即可。如果客户端是Windows 2003系统,则直接在“控制面板”的“存储的用户名和密码”项中删除即可。
阅读全文
posted @ 2007-08-11 14:31
一路前行
阅读(324)
推荐(0)
2007年7月30日
摘要:
System.Drawing.Color cl = Color.Red; 或者:System.Drawing.Color cl = Color.FromArgb(255,0,0); 或者:myDataGrid.BorderColor=Color.FromName("#DEBA84");
阅读全文
posted @ 2007-07-30 16:09
一路前行
阅读(3256)
推荐(1)
摘要:
只要在Label两端加入即可。或者用CSS控制:.list{overflow:hidden;width:500px;} 超过宽度部分不换行。超过的文字,不显示出来
阅读全文
posted @ 2007-07-30 11:41
一路前行
阅读(5199)
推荐(0)
2007年7月26日
摘要:
使用指定的替换值替换 NULL。 Transact-SQL 语法约定 语法 ISNULL ( check_expression , replacement_value ) 备注如果 check_expression 不为 NULL,则返回它的值;否则,在将 replacement_value 隐式转换为 check_expression 的类型(如果这两个类型不同)后,则返回前者。 参数che...
阅读全文
posted @ 2007-07-26 11:56
一路前行
阅读(1332)
推荐(0)
2007年7月25日
摘要:
例: 在应用程序里面调用WORD 在按扭的事件里写入: System.Diagnostics.Process.Start("winword.exe"); 调用excel: System.Diagnostics.Process.Start("excel.exe");
阅读全文
posted @ 2007-07-25 17:51
一路前行
阅读(215)
推荐(0)
摘要:
一个父页面parent.aspx iframe了一个子页面children.aspx 如果在children.aspx页面中想要刷新parent.aspx的话则使用: ClientScript.RegisterStartupScript(this.GetType(),"script","");
阅读全文
posted @ 2007-07-25 16:12
一路前行
阅读(1329)
推荐(0)
2007年7月23日
posted @ 2007-07-23 13:36
一路前行
阅读(607)
推荐(0)
2007年7月20日
摘要:
假设id是主键: select * from (select top xxx * from yourtable) aa where not exists(select 1 from (select top xxx-1 * from yourtable) bb where aa.id=bb.id) 如果使用游标也是可以的 fetch absolute [number] from [cursor_n...
阅读全文
posted @ 2007-07-20 14:14
一路前行
阅读(569)
推荐(0)
摘要:
方法如下:先从SYSTEMOBJECT系统表中取得数据表的SYSTEMID,然后再SYSCOLUMN表中取得该数据表的所有列名。
SQL语句如下:
declare @objid int,@objname char(40)
set @objname = 'tablename'
select @objid = id from sysobjects where id = object_id(@objna...
阅读全文
posted @ 2007-07-20 14:11
一路前行
阅读(333)
推荐(0)
摘要:
有表A,id pid1 11 21 32 12 23 1如何化成表B:id pid1 1,2,32 1,23 1 创建一个合并的函数create function fmerg(@id int)returns varchar(8000)asbegindeclare @str varchar(8000)set @str=''select @str=@str+','+cast(pid as varch...
阅读全文
posted @ 2007-07-20 14:09
一路前行
阅读(153)
推荐(0)
摘要:
假设有张学生成绩表(CJ)如下Name Subject Result张三 语文 80张三 数学 90张三 物理 85李四 语文 85李四 数学 92李四 物理 82 想变成 姓名 语文 数学 物理张三 80 90 85李四 85 92 82 declare @sql varchar(4000)set @sql = 'select Name'select @sql = @sql + ',sum(c...
阅读全文
posted @ 2007-07-20 14:05
一路前行
阅读(187)
推荐(0)
摘要:
整理了一下SQL Server里面可能经常会用到的日期格式转换方法: 举例如下: select CONVERT(varchar, getdate(), 120 ) 2004-09-12 11:06:08 select replace(replace(replace(CONVERT(varchar, getdate(), 120 ),'-',''),' ',''),':','') 20040...
阅读全文
posted @ 2007-07-20 14:03
一路前行
阅读(1174)
推荐(0)