摘要: /// <summary> /// 取得排序方式(正向\反向) /// </summary> public SortDirection GridViewSortDirection { get { if (ViewState["sortDirection"] == null) ViewState["sortDirection"] = SortDirection.Ascendi... 阅读全文
posted @ 2008-03-17 22:21 zxynet(海洋之星) 阅读(1258) 评论(0) 推荐(0) 编辑
摘要: 不要在aspx页面中直接设置ReadOnly;在Page_Load方法中加入如下代码TextBox1.Attributes.Add("readonly","readonly"); 阅读全文
posted @ 2007-11-06 11:08 zxynet(海洋之星) 阅读(882) 评论(0) 推荐(0) 编辑
摘要: function printing(tb){ var nw = window.open('','','width=800,height=600') nw.document.open("text/html","GB2312") nw.document.write("") nw.document.write("") nw.document.write(document.getElementById(t... 阅读全文
posted @ 2007-09-27 18:28 zxynet(海洋之星) 阅读(1210) 评论(0) 推荐(0) 编辑
摘要: js的字符串有关函数1.Asc(x),Chr(x):转换字符,字符码2。正在装载数据……Filter:搜寻字符串数组中的特定字符串格式:v=filter(x,s[,include[,compare]])实例:Dim x()={"kjwang","wangkj","peter"}Dim vv=filter(x,"kj") '结果v(0)="kjwang",v(1)="wang... 阅读全文
posted @ 2007-09-25 13:41 zxynet(海洋之星) 阅读(4114) 评论(0) 推荐(0) 编辑
摘要: var tableObj = document.getElementById("tableName");var str = "";for(var i=0;i<tableObj.rows.length;i++){ for(varj=0;j<tableObj.rows[i].cells.length;j++) { //str += tableObj.rows[i].cells[j].inn... 阅读全文
posted @ 2007-09-25 13:40 zxynet(海洋之星) 阅读(5006) 评论(0) 推荐(0) 编辑
摘要: 方法一:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <style> .EvenOrOddRow{ background-color: expression((this.sectionRowIndex%2)?'white':... 阅读全文
posted @ 2007-09-25 13:36 zxynet(海洋之星) 阅读(1654) 评论(0) 推荐(0) 编辑
摘要: pre {white-space: pre-wrap; /* css-3 */white-space: -moz-pre-wrap; /* Mozilla, since 1999 */white-space: -pre-wrap; /* Opera 4-6 */white-space: -o-pre-wrap; /* Opera 7 */word-wrap: break-word; /* Inte... 阅读全文
posted @ 2007-04-09 16:30 zxynet(海洋之星) 阅读(879) 评论(1) 推荐(0) 编辑
摘要: 搞了一天这个问题,终于在快下班时,搞定了!!!!!!!!!!方法是将Tomcat中的server.xml文件中改为:<Connectorport="8080" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPor... 阅读全文
posted @ 2007-01-31 11:30 zxynet(海洋之星) 阅读(3168) 评论(3) 推荐(0) 编辑