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

C#£¨ASP.NET£© ÏÂÔØÊý¾Ý

Internet Àà
using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Net;
using System.IO;
using System.Text.RegularExpressions;
using System.Threading;
namespace DownData
{
    class internet
    {
        #region ¹ýÂ˿ոñ
        public static string FilterKG(string msg)
        {
            string ms = Regex.Replace(msg, @"\s", "");
            return ms;
        }
        #endregion
        #region ¿É±äµØ·½
        // ÌáÈ¡HTML´úÂëÖеÄÍøÖ·
        public static ArrayList GetHyperLinks(string content)
        {
            ArrayList al = new ArrayList();
            int b = 0;
            int a = 0;
            int index = 0;
                while (true)
            {
                a = content.IndexOf("<a href=\"javascript:click_history('", b);
                if (a != -1)
                {
             


Ïà¹ØÎĵµ£º

ASP.NET MD5+SHA1 ¼ÓÃÜ

-----MD5¼ÓÃÜ
 
//ʹÓüÓÃÜ·þÎñÌṩ³ÌÐò(CSP) ÌṩµÄʵÏÖ£¬¼ÆËãÊäÈëÊý¾ÝµÄMD5 ¹þÏ£Öµ
            MD5CryptoServiceProvider crypto = new MD5CryptoServiceProvider();
            //½«×Ö·û´®× ......

Asp.NetÉèÖðó¶¨GridViewÖеĿؼþ

 1¡¢½çÃæ´úÂ룺         
  <asp:GridView ID="gridTemplateDetailList" runat="server"
                   AutoGenerateColumns="False"
  &nbs ......

ASP.NETÒ³ÃæË¢ÐµÄʵÏÖ·½·¨

ÏÈ¿´¿´ASP.NETÒ³ÃæË¢ÐµÄʵÏÖ·½·¨£º
µÚÒ»£º
C# code
private void Button1_Click( object sender, System.EventArgs e )
{
Response.Redirect( Request.Url.ToString( ) );
}
µÚ¶þ£º
C# code
private void Button2_Click( object sender, System.EventArgs e )
{
Response.Write( " < script langua ......

ASP.NET ¿çÒ³´«µÝ

Ò»¡¢ÏìÓ¦ÖØ¶¨Ïò·½·¨
ÏìÓ¦ÖØ¶¨Ïò·½·¨ÊÇĿǰΪֹ½«Ò»¸öÍøÒ³ÖØ¶¨Ïòµ½ÁíÒ»¸öÍøÒ³µÄ×î¼òµ¥µÄ·½·¨µÄ×î¼òµ¥µÄ·½·¨¡£µ±Web·þÎñÆ÷½Óµ½Ò»¸öÖØ¶¨ÏòÇëÇóºó£¬Ëü»á½«Ò»¸öÏìӦͷË͸ø¿Í»§¶Ë£¬Õ⽫µ¼Ö¿ͻ§¶Ë·¢ËÍÒ»¸öеÄÇëÇóµ½·þÎñÆ÷¡£°´¾ä»°Ëµ£¬Ò»¸öÖØ¶¨ÏòÇëÇóʵ¼ÊÉÏÊÇÁ½¸öÇëÇóÏìÓ¦£ºÒ»¸öÊÇ×î³õµÄÇëÇóÏìÓ¦£¬ÁíÒ»¸öÊÇеÄÖØ¶¨ÏòÇëÇóÏìÓ¦¡ ......

ASP.NET³£ÓÃÓï¾ä

1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(" <script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')
</script>");
Response.Write(" <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>");
2.//µ¯³ö¶Ô»°¿ò
Response.Write(" <script lang ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ