stealther

2010年5月13日

href的用法

摘要: 关于js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法"window.location.href"、"location.href"是本页面跳转"parent.location.href"是上一层页面跳转"top.location.href"是最外层的页面跳转举例说明:如果A,... 阅读全文

posted @ 2010-05-13 11:20 stealther 阅读(457) 评论(0) 推荐(1) 编辑

2010年5月3日

C#格式字符串

摘要: 时间格式化有时候我们要对时间进行转换,达到不同的显示效果  默认格式为:2005-6-6 14:33:34  如果要换成成200506,06-2005,2005-6-6或更多的该怎么办呢  我们要用到:DateTime.ToString的方法(String, IFormatProvider)    using System;  using System.Globalization;  String... 阅读全文

posted @ 2010-05-03 15:33 stealther 阅读(2029) 评论(0) 推荐(0) 编辑

2010年4月9日

js 操作select 大全

摘要: 1判断select选项中 是否存在Value="paraValue"的Item 2向select选项中 加入一个Item 3从select选项中 删除一个Item 4删除select中选中的项 5修改select选项中 value="paraValue"的text为"paraText" 6设置select中text="paraText"的第一个Item为选中 7设置select中value="pa... 阅读全文

posted @ 2010-04-09 12:12 stealther 阅读(350) 评论(0) 推荐(0) 编辑

2010年4月3日

常见SQL语句-创建表 添加主键 添加列

摘要: 新建表:create table [表名]([自动编号字段] int IDENTITY (1,1) PRIMARY KEY ,[字段1] nVarChar(50) default \'默认值\' null ,[字段2] ntext null ,[字段3] datetime,[字段4] money null ,[字段5] int default 0,[字段6] Decimal (12,4) defa... 阅读全文

posted @ 2010-04-03 10:59 stealther 阅读(30004) 评论(4) 推荐(1) 编辑

数据控件的绑定

摘要: Repeater<%# databinder.eval(container.dataitem,"name" ) %> 阅读全文

posted @ 2010-04-03 10:45 stealther 阅读(215) 评论(0) 推荐(0) 编辑

2010年4月2日

Sql Server 中一个非常强大的日期格式化函数

摘要: Sql Server 中一个非常强大的日期格式化函数Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AMSelect CONVERT(varchar(100), GETDATE(), 1): 05/16/06Select CONVERT(varchar(100), GETDATE(), 2): 06.05.16Select C... 阅读全文

posted @ 2010-04-02 17:11 stealther 阅读(235) 评论(0) 推荐(0) 编辑

sql 替换text字段中的指定字符

摘要: --text不能直接替换--mbody未目标字段update b_mail set mbody=replace(convert(varchar(max),mbody),'_viewstate','viewstate') where mno=124 阅读全文

posted @ 2010-04-02 15:47 stealther 阅读(322) 评论(0) 推荐(0) 编辑

2009年12月29日

html常用代码

摘要: 1,清除html缓存<meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="expires" content="0"> 阅读全文

posted @ 2009-12-29 11:44 stealther 阅读(230) 评论(0) 推荐(0) 编辑

2009年12月21日

常用C#代码

摘要: 1,发送js到前端  RegisterStartupScript("alerm", "<script>alert('删除对象可能有子部门,请先删除子部门。')</script>");2,提示信息并跳转URL  Response.Write("<script>alert('增加或修改成功!')</script>"); Response.Write("&... 阅读全文

posted @ 2009-12-21 17:05 stealther 阅读(311) 评论(0) 推荐(0) 编辑

Silverlight概论

摘要: Sliverlight能够创建运行于客户端的交互式内容,它对动态图片,媒体以及动画的支持要远高于html.一,理解sliverlight1,1Silverlight特性A,广泛的浏览器支持B,轻量C,二维图形D,动画E,媒体F,CLRG,和web服务交互1,2silverlight的应用范围多数情况下应用时为了增强网站的现有内容它不支持win2000,win98,winme1,3silverlig... 阅读全文

posted @ 2009-12-21 00:54 stealther 阅读(378) 评论(0) 推荐(0) 编辑

导航