文章分类 -  2、QS_Web

刚刚接触.Net时候写的一点小东西,存念!
摘要:继续记录没有技术含量的函数,这次的比较有用。 using System.Text.RegularExpressions;namespace QS_Web{ namespace Kobold { public class Censor { public static bool CheckMode1(string strInput,int ... 阅读全文
posted @ 2006-08-03 15:25 KenBlove 阅读(198) 评论(0) 推荐(0) 编辑
摘要:又几个毫无技术含量的函数,记录一下。呵呵 using System;using System.Web;using System.Configuration;//读取web.confignamespace QS_Web{ namespace Kobold { public class Read { public static string... 阅读全文
posted @ 2006-08-03 15:22 KenBlove 阅读(346) 评论(0) 推荐(0) 编辑
摘要:1、UBB代码处理 public static string UBBEncode(string strInput) { if (strInput == null) { return ""; } else ... 阅读全文
posted @ 2006-08-01 09:20 KenBlove 阅读(368) 评论(1) 推荐(0) 编辑
摘要:生成验证码的大概过程就是在后台取得一个随机的字符串,然后该随机字符串绘制成一幅图片,当然,图片可以加上噪声,防止基本上不会出现的N人分析图形数据获取和还原字符串。 具体生成验证码的代码如下,在生成随机字符串的同时会将字符串设置到一个Session["ValidateCode"] 中,实用的时候只要得到用户返回值和Session值比较就可以得出填入的验证码是否一致了。 using System;... 阅读全文
posted @ 2006-07-31 09:06 KenBlove 阅读(418) 评论(1) 推荐(0) 编辑
摘要:先说实现分页的两条主要SQL语句 strPageSQL1 = "select top " + intPageSize + " pages_id,pages_name,pages_content,pages_datetime,pages_addrows1,pages_addrows2 from pages order by pages_id desc"; ... 阅读全文
posted @ 2006-07-30 14:36 KenBlove 阅读(2024) 评论(4) 推荐(0) 编辑
摘要:首先声明一点,本方法上传类大部分参考自laifangsong的文章“单/多文件上传”,我不过是作了小小改动和增加了调用的ASCX控件,原文地址是:http://jiny-z.cnblogs.com/archive/2006/04/17/377184.html来看看前台的upload.ascx文件: ... 阅读全文
posted @ 2006-07-30 13:01 KenBlove 阅读(699) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示