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
Ïà¹ØÎĵµ£º
ÍøÕ¾µÄÖØ¶¨Ïò£¬Í¨³£ÓõÄÓÐ 301 ºÍ 302£¬301ÊÇÓÀ¾ÃÖØ¶¨Ïò£¬ÊǶÔSEOÓѺõģ¬ÓÐÀûÓÚ±£³ÖÔÓòÃûºÍÐÂÓòÃûÖ®¼äµÄPR×ªÒÆ¼°Á÷Á¿Êý¾ÝµÈ¡£
Asp.Net ÖÐʵÏÖ301ÖØ¶¨ÏòµÄ´úÂ룬ҲÊDZȽϼòµ¥µÄ£¬¾Ù¸öÀý×Ó£º
ÔÀ´µÄÓòÃûÊÇ www.abc.com, ÏÖÔÚÒª½«¶ÔÕâ¸öÓòÃûµÄ·ÃÎÊ£¬È«²¿Öض¨Ïòµ½ www.zu14.cn;
Ö»ÐèÔÚ ÐèҪתÏòµÄÒ³ÃæÀ
protected void ......
asp.net ajaxѧϰ±Ê¼Ç
Ò»¡¢ µÇÌÃÈëÊÒ——»ù±¾¸ÅÄî
http://blog.csdn.net/soldierluo/archive/2009/11/18/4830758.aspx
¶þ¡¢ СÊÔÉíÊÖ——µÚÒ»¸öAjax³ÌÐò
http://bl ......
ÏÈ¿´¿´ASP.NETÒ³ÃæË¢ÐµÄʵÏÖ·½·¨£º
µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); }
µ ......
In the last post I showed how to use the ASP.NET 3.5 Routing Engine
for URLRewriting purposes. I want to go further in this post by adding
the ability to add variables into a route path and forward and append
query string variables to the destination Web Form request.
A route can contain one or ......