ASP.NET Ò³ÃæÊý¾ÝУÑéÀà ÀîÌìÆ½ÀÏʦдµÄ£¬ºÜºÃµÄ
using System.Text.RegularExpressions;
/// <summary>
/// Ò³ÃæÊý¾ÝУÑéÀà
/// ÀîÌìÆ½
/// 2004.8
/// </summary>
public class PageValidate
{
private static Regex RegNumber = new Regex("^[0-9]+$");
private static Regex RegNumberSign = new Regex("^[+-]?[0-9]+$");
private static Regex RegDecimal = new Regex("^[0-9]+[.]?[0-9]+$");
private static Regex RegDecimalSign = new Regex("^[+-]?[0-9]+[.]?[0-9]+$"); //µÈ¼ÛÓÚ^[+-]?\d+[.]?\d+$
private static Regex RegEmail = new Regex("^[\\w-]+@[\\w-]+\\.(com|net|org|edu|mil|tv|biz|info)$");//w Ó¢ÎÄ×Öĸ»òÊý×ÖµÄ×Ö·û´®£¬ºÍ[a-zA-Z0-9] Óï·¨Ò»Ñù
private static Regex RegCHZN = new Regex("[\u4e00-\u9fa5]");
public PageValidate()
{
}
#region Êý×Ö×Ö·û´®¼ì²é
/// <summary>
/// ¼ì²éRequest²éѯ×Ö·û´®µÄ¼üÖµ£¬ÊÇ·ñÊÇÊý×Ö£¬×î´ó³¤¶ÈÏÞÖÆ
/// </summary>
/// <param name='req'>Request</param>
/// <param name='inputKey'>RequestµÄ¼üÖµ</param>
/// <param name='maxLen'>×î´ó³¤¶È</param>
/// <returns>·µ»ØRequest²éѯ×Ö·û´®</returns>
public static string FetchInp
Ïà¹ØÎĵµ£º
ASP.NET³ÌÐòÖг£ÓõÄÈýÊ®ÈýÖÖ´úÂë
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string& ......
ÔÚasp.netÖÐÓÃjs¿ØÖƵ¯³öÒ»¸öģ̬´°¿Ú£¬Ä£Ì¬´°¿ÚÈ´²»ÄÜ·ÖÒ³¡£µ¥¶ÀÔËÐдËÒ³·ÖҳЧ¹ûÊÇ¿ÉÒÔ´ïµ½µÄ¡£
Îҵĵ¯³öģ̬´°¿ÚµÄ´úÂëÊÇ£º
var param=window.showModalDialog("../StorageList.aspx",null,"height=100px;width=950px;status=yes;toolbar=no,location=nu");
²»ÖªµÀΪʲô»á³öÏÖÕâÖÖЧ¹û£¿
½â¾ö·½·¨ÊÇÔÚÒªµ¯³öµÄģ̬´ ......
Ö÷ÒªÀࣺ
¡¡¡¡System.Web.HttpRuntime
¡¡¡¡System.Web.HttpApplicationFactory
¡¡¡¡System.Web.HttpApplication
¡¡¡¡System.Web.Compilation.BuildManager
¡¡¡¡System.Web.Compilation.ApplicationBuildProvider
¡¡¡¡System.Web.Compilation.BuildProvidersCompiler
¡¡¡¡System.Web.UI.PageHandlerFactory ......
-----MD5¼ÓÃÜ
//ʹÓüÓÃÜ·þÎñÌṩ³ÌÐò(CSP) ÌṩµÄʵÏÖ£¬¼ÆËãÊäÈëÊý¾ÝµÄMD5 ¹þÏ£Öµ
MD5CryptoServiceProvider crypto = new MD5CryptoServiceProvider();
//½«×Ö·û´®× ......