摘要: http://blog.163.com/tarcy_tw/blog/static/3172353201106068302/ 阅读全文
posted @ 2011-11-22 11:21 小女阿媚 阅读(138) 评论(0) 推荐(0) 编辑
摘要: http://community.csdn.net/Expert/topic/4541/4541877.xml?temp=.5768854 1.设置web.config文件。 <system.web> ...... <globalization requestEncoding= "gb2312 " responseEncoding= "gb2312 " culture= "zh-CN " fileEncoding= "gb2312 " /> ...... </system.web> 阅读全文
posted @ 2011-11-18 11:36 小女阿媚 阅读(468) 评论(0) 推荐(0) 编辑
摘要: marquee元素创建一个滚动的文本字幕。重要的属性direction设置或获取文本滚动的方向。(left、right、up、down)loop设置或获取字幕播放的次数。scrollAmount设置或获取介于每个字幕绘制序列之间的文本滚动像素数。scrollDelay设置或获取字幕滚动的速度。由左向右滚动。移动速度为每100毫秒2像素。<marqueescrollAmount="2"scrollDelay="100"direction="left">滚动显示文字</marquee><marqueeloop 阅读全文
posted @ 2011-08-29 15:02 小女阿媚 阅读(344) 评论(0) 推荐(0) 编辑
摘要: var DomainRelativePath = System.Web.HttpContext.Current.Request.ApplicationPath == "/" ? "/" : System.Web.HttpContext.Current.Request.ApplicationPath + "/"; 阅读全文
posted @ 2011-08-23 16:38 小女阿媚 阅读(188) 评论(0) 推荐(0) 编辑
摘要: <script language="javascript" type="text/javascript"> var newsXMLHttpRequest; function GetxmlRequest() { newsXMLHttpRequest = window.XMLHttpRequest ? (new XMLHttpRequest()) : (new ActiveXObject("Microsoft.XMLHTTP")); } function request(choose, format) { GetxmlRequ 阅读全文
posted @ 2011-08-10 17:57 小女阿媚 阅读(176) 评论(0) 推荐(1) 编辑
摘要: string id = Request["code"]; if (!string.IsNullOrEmpty(id)) { if (id.Length > 4) { string[] b = id.Split(','); id = (b[b.GetUpperBound(b.Rank - 1)]); } return id; } 阅读全文
posted @ 2011-08-09 10:47 小女阿媚 阅读(203) 评论(0) 推荐(0) 编辑
摘要: ////用正则表达式去掉文章里面的所有标签 private static string RemoveSpecifyHtml(string ctx) { return Regex.Replace(ctx, @"<(.|\n)*?>", string.Empty); }数据绑定<li><a href="detail.aspx?key=<%=article.FID %>">·<%= Regex.Replace(utility.GetTitle(article), @"<(.|\n) 阅读全文
posted @ 2011-08-05 18:04 小女阿媚 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 在web.config里面做这样的修改<system.web><httpRuntime requestValidationMode="2.0" /><pages validaterequest="false"/></system.web> 阅读全文
posted @ 2011-08-04 16:48 小女阿媚 阅读(224) 评论(0) 推荐(0) 编辑