- 博客(5)
- 收藏
- 关注
转载 JS报错:Permission denied to access property 'document'---document.domain - JavaScript的同源策略问题
错误原因是因为父窗口与子窗口的域名不同,即便同一站点下,也需要写全引用地址:如同是xxx.com下的页面与<iframe id="iframe_xxxx" name="iframe_xxxx" src ="http://www.xxx.com/sub.html" frameborder="0" height="300" width="1000">是有区别的笔者在做第三方集成时,使用了,
2013-01-31 13:49:52 46891 2
原创 C# 正则表达式
1。判断字符串中含有句点个数:string a = @"\."; //一定要转义int b = Regex.Matches("lls.ds.jpg", b).Count;context.Response.Write(fileName+""+b);
2013-01-21 23:02:37 486
转载 asp.net Response.AddHeader的方法来下载
System.IO.FileInfo info = new System.IO.FileInfo(Server.Mappath("Data\") + "FileName.exe"); protected void Button3_Click(object sender, EventArgs e) { Response.Clear(); Res
2013-01-10 17:07:02 1080
原创 网址收藏
asp.nethttp://www.cnblogs.com/TomXu/archive/2011/11/28/2263111.htmlhttp://www.cnblogs.com/stwyhm/archive/2006/08/08/470972.html字符编码----请求和响应编码必须严格保持一致!http://www.cnblogs.com/ljb8664/archive/20
2013-01-06 10:02:06 366
转载 LINQ语句表达式~~
Dictionary dic = new Dictionary();dic.Add(1, "HaHa");dic.Add(5, "HoHo");dic.Add(3, "HeHe");dic.Add(2, "HiHi");dic.Add(4, "HuHu");var result = from pair in dic orderby pair.
2013-01-04 21:04:45 328
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人