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)
{
Ïà¹ØÎĵµ£º
Èç¹ûҪת»¯µÄÒ³ÃæÖ»ÓÐÒ»Á½¸ö£¬ÇÒÁ½ÕßÖ®¼äµÄûʲô¹ØÁª£¬¾Í¿ÉÒÔÓÃÌæ»»·½·¨ÊµÏÖ£¬ÏÈÓÃhtml±àдºÃÒ»ÕÅÍøÒ³£¬ÔÚÐèÒªÓõ½Êý¾Ý¿âµÄµØ·½ÓÃÌØÊâµÄ±êÇ©±ê¼Ç×Å£¬ÀýÈç&idµÈ¡£ÔÚÓÃ.net±àдһÕÅaspxÍøÒ³ÓÃÓÚ°ÑÕâЩ±êÇ©Ìæ»»³ÉÏëÒªµÄÊý¾Ý¿âÄÚÈÝ£¬ÕâÑù¾ÍÐÐÁË¡£²»¹ý±È½ÏÂé·³µÄÊÇÿ´Î¸üÐÂÊý¾Ý¿â¶¼Òª×ª»¯Ò»´Î¡£
»¹ÓоÍÊÇÈç¹ûÊÇÍøÒ³Ö®¼äÓк ......
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 ......
±¾ÎÄͨ¹ýÒ»¶ÎÍêÕûµÄ´úÂëÏò¶ÁÕß½éÉܸ´ºÏ×Ô¶¨Òå¿Ø¼þµÄÖÆ×÷£¬°üÀ¨£º×Ô¶¨ÒåÊôÐÔ¡¢Ê¼þ´¦Àí¡¢¿Ø¼þ¼äÊý¾Ý´«µÝµÈ·½ÃæµÄ¼¼Êõ¡£
ÒÔÏÂÊÇÒ»¸öµÇ½¿òµÄ´úÂ룬°üÀ¨£ºÓû§ÃûÊäÈëTextBox¡¢ÃÜÂëÊäÈëTextBox¡¢Ìá½»Button¡¢ÖØÖÃButtonÒÔ¼°³ÐÔØÒÔÉÏËÄÏîµÄPanel¡£¿Ø¼þÀàÃûΪLoginCtrl¡£
£¨Àý³ÌʹÓÃC#£©
using System;
using System.Web.UI;
......
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 ......
1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯
Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
¡¡¡¡·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø£¨Connection Pool£©¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø±Õʱ ......