11 2011 档案
摘要:正则表达式匹配html元素的时候,正则表达式字符串,和源字符串都不要Server.HtmlEncode() 编码了,直接匹配1.html 内容如下:<td class="coln_2"> <div class="divTrueName"> <!--{start}--> <a id="tbl_tr_name_qt_1" href="http://shanghai.anjuke.com/shop/view/316462" class="aTrueName"
阅读全文
摘要:在实际开发中如新闻系统就需要利用js来调用某分类的新闻等.非Codebehind版Showjs.aspx----------------------------<%Response.Write ("document.write('output')")%>Showjs.html---------------------------<script language="JavaScript" Src="Showjs.aspx"></script>这样就可以正常查看showjs.html输出
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->substr方法返回一个从指定位置开始的指定长度的子字符串。stringvar.substr(start[,length])参数stringvar必选项。要提取子字符串的字符串文字或String对象。start必选项。所需的子字符串的起始位置。字符串中的第一个字符的索引为0。length可选项。在返回的子字符串中应包括的字符个数。说明如果length为0或负数,将返回一个空字符串。如果没有指定该
阅读全文
摘要:在读取二进制图片时,有时会显示 xml页面无法显示··· 这可能是因为 Response.ContentType = "Image/Jpeg"; 写的有问题
阅读全文
摘要:上传核心代码:try { string ImgPath = FileUpload1.PostedFile.FileName; string ImgName = ImgPath.Substring(ImgPath.LastIndexOf("\\") + 1); string ImgExtend = ImgPath.Substring(ImgPath.LastIndexOf(".") + 1); if (!(ImgExtend == "bmp" || ImgExtend == "jpg" || ImgExtend ==
阅读全文
摘要:上传图片,生成缩略图,加文字水印,图片水印方法实现2009-07-28 10:40:06|分类: asp.net |标签: |字号大中小订阅 /// <summary> /// 生成缩略图 /// </summary> /// <param name="originalImagePath">源图路径(物理路径)</param> /// <param name="thumbnailPath">缩略图路径(物理路径)</param> /// <param name="wi
阅读全文
摘要:In Visual Studio .NET 2003, it was pretty straight forward to create Web Control Library, Mobile Web Applications etc., since each of them had templates that were present in "Add - New - Project" quite prominently.在Visual Studio 。 NET 2003年,这是一个口直着创建Web控件库,移动互联网应用等,因为每个人的模板,出现在“添加-新-项目”相当突
阅读全文