Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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¶¯Ì¬Îļþת¾²Ì¬µÄhtmlÎļþ£¡

Èç¹ûҪת»¯µÄÒ³ÃæÖ»ÓÐÒ»Á½¸ö£¬ÇÒÁ½ÕßÖ®¼äµÄûʲô¹ØÁª£¬¾Í¿ÉÒÔÓÃÌæ»»·½·¨ÊµÏÖ£¬ÏÈÓÃhtml±àдºÃÒ»ÕÅÍøÒ³£¬ÔÚÐèÒªÓõ½Êý¾Ý¿âµÄµØ·½ÓÃÌØÊâµÄ±êÇ©±ê¼Ç×Å£¬ÀýÈç&idµÈ¡£ÔÚÓÃ.net±àдһÕÅaspxÍøÒ³ÓÃÓÚ°ÑÕâЩ±êÇ©Ìæ»»³ÉÏëÒªµÄÊý¾Ý¿âÄÚÈÝ£¬ÕâÑù¾ÍÐÐÁË¡£²»¹ý±È½ÏÂé·³µÄÊÇÿ´Î¸üÐÂÊý¾Ý¿â¶¼Òª×ª»¯Ò»´Î¡£
»¹ÓоÍÊÇÈç¹ûÊÇÍøÒ³Ö®¼äÓк ......

40ÌõASP.NET¿ª·¢Tip

2010-01-25 14:24
40ÌõASP.NET¿ª·¢Tip
×÷Õߣº÷è÷ë   À´Ô´£º²©¿ÍÔ°   ·¢²¼Ê±¼ä£º2010-01-21 13:16   ÔĶÁ£º287 ´Î  Ô­ÎÄÁ´½Ó   [ÊÕ²Ø]  
1¡¢ÔÚcompilation Ï£¬ÇëÉèÖÃdebug=false £¬ÈçÏ£º
default Language="c#" debug="false">
2¡¢ÇëʹÓÃServer.Tran ......

´´½¨ASP.NET WEB×Ô¶¨Òå¿Ø¼þ

±¾ÎÄͨ¹ýÒ»¶ÎÍêÕûµÄ´úÂëÏò¶ÁÕß½éÉܸ´ºÏ×Ô¶¨Òå¿Ø¼þµÄÖÆ×÷£¬°üÀ¨£º×Ô¶¨ÒåÊôÐÔ¡¢Ê¼þ´¦Àí¡¢¿Ø¼þ¼äÊý¾Ý´«µÝµÈ·½ÃæµÄ¼¼Êõ¡£
ÒÔÏÂÊÇÒ»¸öµÇ½¿òµÄ´úÂ룬°üÀ¨£ºÓû§ÃûÊäÈëTextBox¡¢ÃÜÂëÊäÈëTextBox¡¢Ìá½»Button¡¢ÖØÖÃButtonÒÔ¼°³ÐÔØÒÔÉÏËÄÏîµÄPanel¡£¿Ø¼þÀàÃûΪLoginCtrl¡£
£¨Àý³ÌʹÓÃC#£©
using System;
using System.Web.UI; ......

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 ......

26ÖÖÌá¸ßASP.NETÍøÕ¾·ÃÎÊÐÔÄܵÄÓÅ»¯·½·¨

1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯
Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
¡¡¡¡·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø£¨Connection Pool£©¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø±Õʱ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ