写写程序,一种成就的感觉

写写程序,一种成就的感觉

导航

12 2009 档案

摘要:后台Cs写法string keyword = basic.GuanJianZi; string[] a = keyword.Split(new char[] { '\n' }); Repeater2.DataSource = a; Repeater2.DataBind();前台<asp:Repeater ID="Repeater2" runat="server"> <ItemTe... 阅读全文

posted @ 2009-12-28 15:01 hateyoucode 阅读(495) 评论(0) 推荐(0)

摘要:<asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("Id") %>' CommandName="shenhe"><%#Eval("PubLish").ToString()=="0"?"显示":"隐藏"%></asp:LinkButton>这是典型的asp的... 阅读全文

posted @ 2009-12-26 09:49 hateyoucode 阅读(1861) 评论(0) 推荐(0)

摘要:Access:select * From 表 Where id in(1,5,3) order by instr(',1,5,3,',','&id&',')MSSQL:select * From 表 Where id in(1,5,3) order by charindex(','+rtrim(cast(id as varchar(10)))+',',',1,5,3,')MySQL... 阅读全文

posted @ 2009-12-21 14:28 hateyoucode 阅读(2523) 评论(0) 推荐(3)

摘要:解决方法一来源:http://msdn.microsoft.com/zh-cn/library/ms178109.aspx为 ASP.NET Development Server 指定端口1、在解决方案资源管理器中,单击应用程序的名称。2、在“属性”窗格中,单击“使用动态端口”旁的下箭头,然后从下拉列表选择“False”。 这... 阅读全文

posted @ 2009-12-18 08:50 hateyoucode 阅读(1107) 评论(0) 推荐(0)

摘要:以前没怎么仔细的研究过ajax,只是用到了就直接拿过来用,发现了问题再找解决方法.以下是我在找解决问题的过程中的一点小小的总结.一.谈Ajax的Get和Post的区别 Get方式: 用get方式可传送简单数据,但大小一般限制在1KB下,数据追加到url中发送(http的header传送),也就是说,浏览器将各个表单字段元素及其数据按照URL参数的格式附加在请求行中的资源路径后面。另外最重要的一点是... 阅读全文

posted @ 2009-12-09 11:24 hateyoucode 阅读(24119) 评论(1) 推荐(5)

摘要:如果以前没用见过 escape() 方法,它用于转义不能用明文正确发送的任何字符。比如,电话号码中的空格将被转换成字符 %20,从而能够在 URL 中传递这些字符。var url = "/cgi-local/lookupCustomer.php?phone=" + escape(phone);定义一般变量用var数组要加new Array()var avar b=new Array()b=a.sp... 阅读全文

posted @ 2009-12-09 10:03 hateyoucode 阅读(180) 评论(0) 推荐(0)

摘要:test.html中的代码<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>... 阅读全文

posted @ 2009-12-07 10:15 hateyoucode 阅读(3370) 评论(0) 推荐(0)

摘要:引用:原帖由 twming 于 2008-6-30 13:42 发表 span是内联的加block让它成为块级元素!拥有布局,不知道这样说对不!呵呵 块级元素并不等于拥有布局。display: inline-block;会触发拥有布局。display:block;并不会。<span style="width:39px; display: inline-block; height:20px; ... 阅读全文

posted @ 2009-12-01 14:17 hateyoucode 阅读(2964) 评论(0) 推荐(0)