随笔分类 -  .Net

摘要:.Split (char) : 按固定字符分割函数string[] listSideContent = sideContent.Split(','); 阅读全文
posted @ 2011-04-11 22:04 hen 阅读(211) 评论(0) 推荐(0) 编辑
摘要://引用命名空间using System.Drawing.Imaging;using System.Drawing;using System.Drawing.Drawing2D;#region GetPicThumbnail /// <summary> /// 无损压缩图片 /// </summary> /// <param name="sFile">原图片</param> /// <param name="dFile">压缩后保存位置</param> /// <param n 阅读全文
posted @ 2011-04-07 09:30 hen 阅读(24923) 评论(19) 推荐(5) 编辑
摘要:Convert : 内容转换函数举例: Convert.ToInt32() 可以将多种类型(包括 object 引用类型)的值转换为 int 类型,因为它有许多重载版本[2]: public static int ToInt32(object); public static int ToInt32(bool); public static int ToInt32(byte); public static int ToInt32(char); public static int ToInt32(decimal); public static int ToInt32(double); public 阅读全文
posted @ 2011-04-07 09:01 hen 阅读(754) 评论(0) 推荐(0) 编辑
摘要:1.使用传统的Response.Redirect例如string url = "/account/create";Response.Redirect(url);1.Server.Transfer方法: Server.Transfer("m2.aspx");//页面转向(服务器上执行)。服务器停止解析本页,保存此页转向前的数据后,再使页面转向到m2.aspx, 并将转向前数据加上m2.aspx页结果返回给浏览器。 2.Server.Execute方法: Server.Execute("m2.aspx"); 服务器保存此页转向前的数据后, 阅读全文
posted @ 2011-04-02 23:57 hen 阅读(21202) 评论(0) 推荐(3) 编辑