Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Ò»Ì×»ùÓÚasp.netµÄ°²È«Ð£Ñé»úÖÆÓ¦ÓÃÄ£ÐÍ £¡

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.IO;
using System.Text;
using System.Web.UI.MobileControls;
using System.Collections.Generic;
/// <summary>
///SQLFilter µÄժҪ˵Ã÷
/// </summary>
public static class SQLFilter
{
    #region SQL×¢Èë¹ýÂË
    /// <summary>
    /// SQL×¢Èë¹ýÂË
    /// </summary>
    /// <param name="sqlParems">Òª¹ýÂ˵IJÎÊýÊý×é</param>
    /// <returns>Èç¹û²ÎÊý´æÔÚ²»°²È«×Ö·û£¬Ôò·µ»Øfalse</returns>
    // Ó¦ÓÃʾÀý
    // if(TheManagerUtils.SqlFilter(new string[] { "ss","kk" }, this.Page) == false)
    // {
    //     //Ö±½ÓÌø×ªµ½ÏàÓ¦µÄ´íÎóÒ³Ãæ
    //     Response.Redirect("WelfarePage.aspx");
    //     return;
    // }
    public static bool SqlFilter(string[] sqlParems, Page p)
    {
        StringBuilder parems = new StringBuilder();
        #region ÓйطǷ¨Êý¾ÝµÄÏà¹ØÎ¬»¤
        //³£ÓõÄSQL¶ñÒâ×Ö·ûÆÁ±Î
        string sql = "insert|delete|update|select|exec|script";
        try
        {
            //»ñÈ¡ÅäÖÃÔÚWeb.configÖÐ×îеÄSQL¶ñÒâ×Ö·ûÆÁ±Î
            sql = System.Configuration.ConfigurationSettings.AppSettings["


Ïà¹ØÎĵµ£º

ASP.NetÖÐÀûÓÃashxʵÏÖͼƬ·ÀµÁÁ´´úÂë

GET /Img.ashx?img=svn_work.gif HTTP/1.1
Accept: */*
Referer: http://www.svnhost.cn/
Accept-Language: zh-cn
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5 ......

ASP.NET »·¾³ÏµÄÒ³ÃæÑéÖ¤¿Ø¼þ

 
ÑéÖ¤¿Ø¼þÓÃÓÚÑéÖ¤Óû§µÄÊäÈ룬ÀûÓÃÕâЩ¿Ø¼þ£¬¿ª·¢ÈËÔ±¿ÉÒÔÇáËɵÄʵÏÖ¶ÔÓû§ÊäÈëµÄÑéÖ¤¡£ASP.NETÌṩÁËÁùÖÖÑéÖ¤¿Ø¼þ¡£
1.Required Field Validator£ºÑéÖ¤ÊäÈëÊÇ·ñΪ¿ÕµÄ¿Ø¼þ¡£
Ö÷ÒªÊôÐÔ£º
Control To Validate£º±íʾҪ½øÐмì²éµÄ¿Ø¼þID¡£´ËÊôÐÔ±ØÐëÉèÖÃΪÊäÈë¿Ø¼þµÄID£¬·ñÔò»á·¢ÉúÒì³£¡£ÁíÍâ¸ÃIDËù´ú±íµÄ¿Ø¼þ± ......

Asp.netÉú³Éhtm¾²Ì¬ÎļþµÄÁ½ÖÖ;¾¶

ÏÖÔںܶàÍøÕ¾ÌØ±ðÊÇ×ÊѶÀàµÄ¶¼°ÑÄÚÈÝÉú³É¾²Ì¬Ò³£¨htm\html\shtmlµÈ£©£¬ÕâÀà×ܽáÁËÒ»ÏÂÁ½ÖÖÉú³É¾²Ì¬Ò³µÄ·½·¨²¢×öÁËÒ»¸öDemoÎļþ¹©´ó¼ÒÏÂÔØ¡£
·Ö±ðÊÇͨ¹ýÄ£°å£¨±È½Ï³£Ó㩺͸ù¾ÝurlÉú³É£¨²»µ½Íò²¿ÔòÒÔ²»Óã¬ÒòΪÕâÖз½Ê½Ö»ÄÜ»ñÈ¡htmlµÄ²¿·Ö£©£º
Asp.netÉú³É¾²Ì¬Îļþ£¨¸ù¾Ýʱ¼ä×Ô¶¯ÃüÃû±£³Ö£¬Ä¬ÈÏÀ©Õ¹ÃûÊÇhtm¿ÉÒÔ×ÔÐÐÐ޸ģ©¡ ......

dz̸ASP.NETÒ³ÃæÉúÃüÖÜÆÚ(¿Ø¼þ)

ASP.NETµÄÓŵãÎÒ˵¹ýºÜ¶à´ÎÁË£¬Ò²¾ÍÊǸ÷¸ö¿Ø¼þ¶ÀÁ¢¸ºÔð×Ô¼ºÄÚ²¿µÄÂß¼­£¬ÕâÊÇÒ»¸öºÃÊÂÇ飬ÒòΪËü½â¾öÁËÔ­±¾ASP´¦ÀíÂß¼­ñîºÏ¶È¸ßµÄÎÊÌ⡣Ȼ¶øÕâÊÇÐèÒª´ú¼ÛµÄ£¬ÄǾÍÊÇÒýÈëASP.NETÒ³ÃæÉúÃüÖÜÆÚ£¬Ëæ×ſؼþµÄ¶à²ãǶÌ×£¬Ó¦Óõĸ´ÔÓ¶ÈÔö¼Ó£¬ÎÒÃÇÔÙ´ÎÏÝÈëÄà̶£¡
ÆäʵÕâ¸öÎÄÕÂÌâÄ¿ÎÒÁ½¸öÔÂǰ¾ÍдÏÂÁË£¬¿ÉÊÇһֱûÏëдÍêËü£¬Ö±µ½½ñÌìÎ ......

ASP.NET×é¼þÉè¼ÆÖ®ÉúÃüÖÜÆÚÏê½â

ASP.NET×é¼þÉè¼ÆÖ®ÉúÃüÖÜÆÚÊÇÊ²Ã´ÄØ£¿ÈÃÎÒÃÇÀ´¿´¿´£º
µ±Ò»¸öASP.NETÒ³Ãæ±»ÇëÇóºó£¬Ò»¸öpageʵÀý±»Éú³É£¬¿ªÊ¼×Ô¼ºµÄÂß¼­£¬×îÖÕ·µ»ØHTMLÁ÷¸øÓû§¶Ë¡£¹¹³ÉÂß¼­´¦ÀíµÄÊÇpageÖдæÔڵķþÎñÆ÷¶Ë¿Ø¼þÒÔ¼°¿Ø¼þ¼äµÄ½»»¥£¬²¢ÇÒÔÚÒ³Ãæ½áÊøÇ°·þÎñÆ÷¿Ø¼þÃDZ»Ïú»Ù£¨ÊÓ.netµÄ»ØÊÕ²ßÂÔ¶ø¶¨£©¡£ÄÇôÕâЩ¿Ø¼þÔڶ̶̵ÄÒ³Ãæ´¦Àí¹ý³ÌÖо­ÀúÁË´´½¨ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ