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

asp.net(c#)×öÒ»¸öÍøÒ³Êý¾Ý²É¼¯¹¤¾ß

×î½ü×öÒ»¸öÍøÕ¾£¬¸ÃÍøÕ¾ÐèÒªÌí¼Ó4000¶à ²úÆ·ÐÅÏ¢£¬Èç¹ûÓÃÈ˹¤·½·¨È¥±ðµÄÍøÕ¾copyÄÇÖÁÉÙÒª»¨·Ñ°ëÔÂʱ¼ä²ÅÄÜÍê³É£¬ËùÒÔÎÒ¸ö°ì·¨Ê¹ÓÃc#×÷³öÀ´ÁËÒ»¸öÍøÒ³Êý¾Ý²É¼¯Èí¼þ
Ïêϸ³ö´¦²Î¿¼£ºhttp://www.jb51.net/article/21468.htm
//ÌáÈ¡²úÆ·ÁбíÒ³ÖвúÆ·×îÖÕÒ³µÄÍøÒ³
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text.Trim() == "" || textBox2.Text.Trim() == "")
{
MessageBox.Show("ÍøÖ·ºÍÓòÃû²»ÄÜΪ¿Õ£¡", "ÐÅÏ¢Ìáʾ", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
try
{
string Html = inc.GetHtml("http://study.pctoday.net.cn");
//ArrayList al = inc.GetMatchesStr(Html, "<a[^>]*?>.*?</a>");
ArrayList al = inc.GetMatchesStr(Html, @"href\s*=\s*(?:[\'\""\s](?<1>[^\""\']*)[\'\""])");//ÌáÈ¡Á´½Ó
" title="Replica Watches:">Replica Watches Buy Full Quality Popular Luxury Watches at Amazing Price, Your One Stop Discount Swiss Watches StoreExclusive Replica Rolex Watches, Tag Heuer Watches Replica, Cartier Watches online Sale!
StringBuilder sb = new StringBuilder();
foreach (object var in al)
{
string a = var.ToString().Replace("\"", "").Replace("'", "");
a = Regex.Replace(a, "href=", "", RegexOptions.IgnoreCase | RegexOptions.Multiline);
if (a.StartsWith("/"))
a = textBox2.Text.Trim() + a;
if (!a.StartsWith("http://"))
a = "http://" + a;
sb.Append(a + "\r\n");
}
textBox5.Text = sb.ToString();//°ÑÌáÈ¡µ½ÍøÖ·Êä³öµ½Ò»¸ötextBox£¬Ã¿¸öÁ´½ÓÕ¼Ò»ÐÐ
MessageBox.Show("¹²ÌáÈ¡" + al.Count.ToString() + "¸öÁ´½Ó", "ÐÅÏ¢Ìáʾ", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch (Exception err)
{
MessageBox.Show("ÌáÈ¡³ö´í£¡Ô­Òò£º" + err.Message, "ÐÅÏ¢Ìáʾ", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
//°Ñ²É¼¯µÄ²úÆ·Ò³Ãæhtml´úÂë½øÐÐ×Ö·û´®´¦Àí£¬ÌáÈ¡ÐèÒªµÄ´úÂ룬×îºó±£´æµ½±¾µØÒ»¸öaccessÊý¾Ý¿âÖУ¬Í¬Ê±ÌáÈ¡²úƷͼƬµØÖ·²¢×Ô¶¯ÏÖÔÚͼƬµ½±¾µØimagesÎļþ¼ÐÏÂ
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
//Ìî³ä²úÆ·±í
Database.ExecuteNonQuery("delete from Tb_Product


Ïà¹ØÎĵµ£º

dzÎöASP.NETµÄIISÓ³Éä

ASP.NETĬÈÏÀ©Õ¹ÃûΪ.aspx£¬¿ÉÊÇÎÒÃÇ¿´µ½Ðí¶àÍøÕ¾µÄÀ©Õ¹ÃûºÜÌر𣬱ÈÈçУÄÚµÄdo¡£¸öÐÔÖ®Ó໹¿ÉÒÔʵÏÖ¼òµ¥µÄα¾²Ì¬£¨¼´°Ñºó׺¸ÄΪhtml£©²»¹ýÏà¶ÔURLRewriterÀ´Ëµ£¬ÊÇÓеã¼òª£¨Ö»ÄܸĵôÁ¬½ÓÖеÄ.aspx£©£¬²»¹ý²»Ê§ÎªÒ»ÖÖ·½·¨¡£ÏÂÃæÎÒÃǾÍÀ´ÊµÏÖËû£¡
    ÏÈÀ´ËµÒ»ÏÂASP.NET 1.1Öеķ½·¨£º
    ......

ASP.NETÍøÕ¾ÓëDiscuz!NTÂÛ̳ÕûºÏ

²½Öè1£º
ÒýÈë5¸öDLLµ½ÏîÄ¿ÖÐ
·Ö±ðÊÇ
using Discuz.Common;
using Discuz.Forum;
using Discuz.Config;
using Discuz.Entity;
using Discuz.Data;
²½Öè2£º 
   public class Discuz_NT
    {
        public static ArrayList Login(string us ......

ASP.netÒ³ÃæÌøתµÄ¼¸ÖÖ·½·¨

<a>±êÇ©
1.         <a href=”test.aspx”></a>
2.         ÕâÊÇ×î³£¼ûµÄÒ»ÖÖתÏò·½·¨;
HyperLink¿Ø¼þ
1.         Asp.net ·þÎñÆ÷¶Ë¿Ø¼þ ÊôÐÔNavigateUrlÖ¸¶ ......

ÔÚASP.Net 2.0ÖÐʵÏÖ¶àÓïÑÔ½çÃæµÄ·½·¨

¡¡1£® ¸úÒÔÇ°Ò»Ñù×ö½çÃ棬ֻÊÇ×¢Ò⣬°ÑËùÓÐÐèÒªÓжàÓïÑÔ½çÃæµÄÎÄ×Ö¶¼ÓÃlabelÀ´×ö
¡¡¡¡2£® ×öÍêÒÔºó£¬ÔÚSolution ExplorerÀïÑ¡ÖÐÕâ¸öÎļþ£¬Ñ¡Tools-£¾Generate Local Resource
¡¡¡¡3£® Äã»á·¢ÏÖÉú³ÉÁËÒ»¸öĿ¼£¬App_LocalResources£»Õâ¸öĿ¼Àï¶àÁËÒ»¸öresxµÄÎļþ¡£±ÈÈçÄãµÄaspxÎļþÊÇdefault.aspx£¬Ëü¾Í»áÉú³ÉÒ»¸ö½Ð×öde ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ