随笔分类 -  Asp.Net

摘要:[代码]在调用的时候只需要将要处理的含有html标签的字符串传进来就可如:string strhtml="<img src=\"images/ad.gif\" border=\"0\"><p>你好,中国!<p>"string str=striphtml(strhtml);Response.Write(str);---------------------输出的结果... 阅读全文
posted @ 2009-11-14 13:18 铞迩锒铛 阅读(996) 评论(0) 推荐(0)
摘要:public class StringUtility { private static string ByteArrayToStr(byte[] by) { try { return Encoding.GetEncoding("gb2312").GetString(by); } catch { return ""; } } public static string Base64ToString(s... 阅读全文
posted @ 2009-10-31 12:23 铞迩锒铛 阅读(209) 评论(0) 推荐(0)
摘要:后台代码:using System;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.W... 阅读全文
posted @ 2008-11-08 17:26 铞迩锒铛 阅读(1446) 评论(3) 推荐(0)