上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: 1.window.parent2.autocomplete="off"3.function DX(n) { //金额大写转换函数 if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)) return "数据非法"; var unit = "千百拾亿千百拾万千百拾元角分", str = ""; n += "00"; var p = n.indexOf('.'); if (p >= 0) n = n.substring(0, p) + n.substr(p 阅读全文
posted @ 2012-09-05 11:10 Uoolo 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1.css代码:html,body{height:100%;} //考虑到内容很少时,body无法布满整个网页#vip_div { position:absolute; top:0; left:0; width:100%; display:none; z-index:20; background-color: #C0C0C0; opacity:0.6; filter:alpha(opacity=60); }2.js代码:function change(){document.getElementById("vip_div").style.height = document.d 阅读全文
posted @ 2012-09-03 16:51 Uoolo 阅读(927) 评论(0) 推荐(0) 编辑
摘要: 网页可见区域宽: document.body.clientWidth网页可见区域高: document.body.clientHeight网页可见区域宽: document.body.offsetWidth (包括边线的宽)网页可见区域高: document.body.offsetHeight (包括边线的高)网页正文全文宽: document.body.scrollWidth网页正文全文高: document.body.scrollHeight网页被卷去的高: document.body.scrollTop网页被卷去的左: document.body.scrollLeft网页正文部分上: w 阅读全文
posted @ 2012-09-03 14:29 Uoolo 阅读(41214) 评论(0) 推荐(3) 编辑
摘要: <asp:GridView ID="GridViewHistory" runat="server" AutoGenerateColumns="False" CssClass="vip_table" GridLines="None" BorderStyle="None" CellPadding="0" ShowHeader="False"... 阅读全文
posted @ 2012-08-30 16:14 Uoolo 阅读(889) 评论(2) 推荐(0) 编辑
摘要: var tip = setInterval("checkTime()", "10000"); var temp = document.getElementById("hidden_endT").value; var datereturn = toDate(temp); function checkTime() { var myTime=Date(); if (Date.parse(myTime) > datereturn) { clearInterval(tip); var auctionCode=document.getEle 阅读全文
posted @ 2012-08-30 15:14 Uoolo 阅读(5865) 评论(0) 推荐(0) 编辑
摘要: 1.取值确定TextBox在GridView的第几列,注意: GridView的列是从0开始计数的,第一列的索引就是0,加入TextBox在第一列,那么我们可以这样 for(int i=0;i<this.GridView1.Rows.Count;i++) { TextBox txt = (TextBox)this.GridView1.Rows[i].Cells[0].FindContro... 阅读全文
posted @ 2012-08-20 17:10 Uoolo 阅读(1677) 评论(0) 推荐(0) 编辑
摘要: 1.Convert.ToInt32、(int)和int.Parse三者的区别:前者适合将object类类型转换成int类型(int)适合简单数据类型之间的转换int.Parse适合将string类类型转换成int类型2.Math.Round(decimal.Parse(text1.Text.Trim()),2);3.String.Format和WriteLine都遵守同样的格式化规则。格式化的格式如下:"{ N [, M ][: formatString ]}", arg1, ... argN,在这个格式中:1) N是从0开始的整数,表示要格式化的参数的个数2) M是一个可 阅读全文
posted @ 2012-08-17 16:41 Uoolo 阅读(295) 评论(0) 推荐(0) 编辑
摘要: ASP.NET公有六种验证控件,分别如下: 控件名 功能描叙 RequiredFieldValidator(必须字段验证) 用于检查是否有输入值 CompareValidator(比较验证) 按设定比较两个输入 RangeValidator(范围验证) 输入是否在指定范围 RegularExpressionValidator(正则表达式验证) 正则表达式验证控... 阅读全文
posted @ 2012-08-17 11:49 Uoolo 阅读(275) 评论(0) 推荐(0) 编辑
摘要: js代码:var confirmPrice = document.getElementById("<%=TextBox_confirm.ClientID %>").value;补充:document.getElementById("TextBox_confirm").value也可以,但在母版页下会被解释成母版页模块名+id控件:<asp:TextBox ID="TextBox_confirm" runat="server" CssClass="confirm_price"&g 阅读全文
posted @ 2012-08-17 11:45 Uoolo 阅读(9020) 评论(6) 推荐(0) 编辑
摘要: <asp:Button ID="Button_commit" runat="server" Text="确认" class="confirm_button" OnClientClick="return compareprice()" onclick="Button_commit_Click" /> 服务器button控件有两个点击事件,一个发生在客户端OnClient... 阅读全文
posted @ 2012-08-17 11:41 Uoolo 阅读(3167) 评论(7) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页