晨风

-------------------- 业精于勤,荒于嬉;行成于思,毁于随

导航

上一页 1 ··· 23 24 25 26 27

2011年9月7日

摘要: protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e){ string valuename = DataBinder.Eval(e.Item.DataItem, "fieldname").ToString();} 阅读全文

posted @ 2011-09-07 15:42 shenyixin 阅读(559) 评论(0) 推荐(0) 编辑

2011年8月26日

摘要: 第一例:代码<HR style="BORDER-RIGHT: #00686b 1px dotted; BORDER-TOP: #00686b 1px dotted; BORDER-LEFT: #00686b 1px dotted; BORDER-BOTTOM: #00686b 1px dotted" noShade SIZE=1>第二例:代码<DIV style="BORDER-TOP: #00686b 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></DIV>第三例:用字符实现 阅读全文

posted @ 2011-08-26 15:03 shenyixin 阅读(35306) 评论(0) 推荐(0) 编辑

摘要: select * from tablenmae where id in(1,2,3)这样的语句和常用,但是如果in 后面的 1,2,3是变量怎么办呢,一般会用字符串连接的方式构造sql语句string aa="1,2,3";string sqltxt="select * from tablename where id in ("+aa+")";然后执行 sqltxt这样的风险是存在sql注入漏洞。那么如何在 in 的条件中使用变量呢?可以把形如“1,2,3”这样的字符串转换为一个临时表,这个表有一列,3行,每一行存一个项目(用逗号分隔 阅读全文

posted @ 2011-08-26 10:27 shenyixin 阅读(35408) 评论(2) 推荐(2) 编辑

2011年8月24日

摘要: SQLSERVER中按年月分组2009年05月14日 星期四 17:06一个表有三个字段id,dt,d 分别存放id,时间,数值 id dt d 1 2004-08-11 12:12:00.000 9 2 2005-09-11 12:08:00.000 2 3 2005-08-11 12:12:00.000 6 4 2005-09-11 12:12:00.000 10 5 2005-08-11 12:12:00.000 0 要求按照时间里的月份分组求d字段和 回答: 相应sql如下:1 ifexists (select*from dbo.sysobjects where id =object. 阅读全文

posted @ 2011-08-24 09:36 shenyixin 阅读(22110) 评论(0) 推荐(0) 编辑

2011年8月5日

摘要: <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatColumns="4"> 阅读全文

posted @ 2011-08-05 15:36 shenyixin 阅读(388) 评论(0) 推荐(1) 编辑

2011年8月4日

摘要: <script type="text/javascript" language="javascript"> //复制到剪切板js代码 function copyToClipBoard(s) { //alert(s); if (window.clipboardData) { window.clipboardData.setData("Text", s); alert("已经复制到剪切板!"+ "\n" + s); } else if (navi... 阅读全文

posted @ 2011-08-04 12:10 shenyixin 阅读(23183) 评论(0) 推荐(2) 编辑

2011年7月26日

摘要: 1.应用程序池必须为“经典”2.IIS中选中ASP项目,右边功能视图中点击ASP,“启用父目录”把false改为true,然后右上角点“应用” 阅读全文

posted @ 2011-07-26 10:01 shenyixin 阅读(347) 评论(0) 推荐(0) 编辑

2011年7月22日

摘要: 代码如下: item.Text = (string)dr["NodeName"]; item.Value = dr["NodeID"].ToString(); item.NavigateUrl = dr["Mlinks"].ToString();这个是框架html: <iframe src="ContactUS.aspx" frameborder="0" width="575px" height="715px" name="centerma 阅读全文

posted @ 2011-07-22 17:00 shenyixin 阅读(259) 评论(0) 推荐(0) 编辑

2011年6月30日

摘要: http://files.cnblogs.com/shenyixin/AllCityData.rar 阅读全文

posted @ 2011-06-30 18:14 shenyixin 阅读(294) 评论(0) 推荐(0) 编辑

上一页 1 ··· 23 24 25 26 27