在网站开发时,生成缩略图是一个非常常见和实用的功能.以前在asp里只能借助com组件实现,现在在.net里可以利用框架的强大的类库轻松实现.下面帖出完整的代码(带详细注释),参考了网上的一些文章及.n
private static Size NewSize(int maxWidth, int maxHeight, int width, int height) { double w = 0.
以下是代码片段: StringWriter textBuffer = new StringWriter(); Match match= Regex.Match(HTMLStr,@"\",RegexOp
本人前一段时间写的,大家交流。转载请注明: 代码编写规范(C#) V1.2 2004 年 11 月 04 日 类别
翻译自孟宪会之精彩世界的VB.NET代码 Webform1.aspx <%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
在ASP.NET中上传图片并生成缩略图的C#源码 using System; using System.Collections; using System.ComponentMo
ASP.NET生成缩略图失真非常厉害,如果图像原文件为JPG格式的,可以通过以下程序优化!!!如果是其它格式的图片可以在上传时候保存为JPG格式的,详情情参见 C#版本: p
在网上看了许多能生成静态页的新闻系统,但基于asp.net的系统极少,闲下时间来自己写了一个,发出来,大家一起研究,代码没做什么优化,只是实现了功能 using System; usi
在网上看了许多能生成静态页的新闻系统,但基于asp.net的系统极少,闲下时间来自己写了一个,发出来,大家一起研究,代码没做什么优化,只是实现了功能 using System; using Syste
仿照以前收集的一个经典sql server数据访问类,稍做修改。 using System; using System.Data; using System.Configuration; using