摘要: function SelectImg(url){ document.all.item("ProductImg").src=document.getElementById("FileUpload1").value; }<asp:FileUpload ID="FileUpload1" runat="server" onchange="SelectImg(this)" /> 阅读全文
posted @ 2011-05-16 10:44 张@天 阅读(2293) 评论(1) 推荐(0) 编辑
摘要: /// 截取字符串,不限制字符串长度 /// 待截取的字符串 /// 每行的长度,多于这个长度自动换行 public string CutStr(string str, int len) { string s = ""; for (int i = 0; i < str.Length; i++) { int r = i % len; int last = (str.Length / len) * len; if (i != 0 && i <= last) { if (r == 0) { s += str.Substring(i - len, len 阅读全文
posted @ 2011-05-16 09:30 张@天 阅读(511) 评论(0) 推荐(0) 编辑