摘要: 将通过字符串形式传到前台 后台 public string targetstring = "var target=[" + targetstring.Substring(0, targetstring.LastIndexOf(',')).ToString() + "]"; 传到前台, 代码: Response.Write(""); 但这样会刷新当前页面,导致因JS问题界面错乱,用以... 阅读全文
posted @ 2013-08-13 14:24 zhcnblog 阅读(189) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; using System.Web; using System.Web.UI; /// /// 一些常用的Js调用 /// 添加新版说明:由于旧版普遍采用Response.Write(string msg)的方式输出js脚本,这种 ... 阅读全文
posted @ 2013-08-13 14:20 zhcnblog 阅读(271) 评论(0) 推荐(0) 编辑
摘要: private static string BM(string hz) { string tmp = ""; foreach (char c in hz) { if (c != ':' && c != '.' && c != '/' && c != '\\' && c != '?' && c != '=' && c != '&' && c != 阅读全文
posted @ 2013-08-13 14:18 zhcnblog 阅读(1841) 评论(0) 推荐(0) 编辑