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

ÔÚasp.netÖÐ×Ô¶¯¸øurlµØÖ·¼ÓÉϳ¬Á´½Ó

 ÒªÏë×Ô¶¯ÏÔʾ³¬Á´½ÓµÄ¹Ø¼üÔÚÓÚÈçºÎÄÜÕýȷʶ±ð³¬Á´½Ó£¬ºÁÎÞÒÉÎʵģ¬×îÓÐЧµÄ·½·¨ÊÇÓÃÕýÔò±í´ïʽ¡£ÕýÔò±í´ïʽÊÇÓÉÆÕͨ×Ö·û£¨ÀýÈç×Ö·û a µ½ z£©ÒÔ¼°ÌØÊâ×Ö·û£¨³ÆÎªÔª×Ö·û£©×é³ÉµÄÎÄ×Öģʽ£¬ÃèÊöÁËÒ»ÖÖ×Ö·û´®Æ¥ÅäµÄģʽ£¬¿ÉÒÔÓÃÀ´¼ì²éÒ»¸ö´®ÊÇ·ñº¬ÓÐijÖÖ×Ó´®¡¢½«Æ¥ÅäµÄ×Ó´®×öÌæ»»»òÕß´Óij¸ö´®ÖÐÈ¡³ö·ûºÏij¸öÌõ¼þµÄ×Ó´®µÈ¡£.net»ù´¡Àà¿âÖаüº¬ÓÐÒ»¸öÃû×Ö¿Õ¼äºÍһϵÁпÉÒÔ³ä·Ö·¢»Ó¹æÔò±í´ïʽÍþÁ¦µÄÀ࣬ÓÃËü¾Í¿ÉÒÔ×Ô¶¯Ì½²â³öÎÄ×ÖÖеÄurlÁ´½Ó»òemailµØÖ·¡£ÏÂÃæÎÒ¾ßÌå½²½²ÈçºÎÓÃasp.net(c#)Ò»²½²½ÊµÏÖÎÒÃǵÄÄ¿µÄ£º
Ê×ÏÈ£¬ÒªÏëÔÚasp.net(c#)ÖÐʹÓÃÕýÔò±í´ïʽ¾Í±ØÐë°Ñ system.text.regularexpressions Õâ¸öÃüÃû¿Õ¼ä°üº¬½øÀ´£º
using system.text.regularexpressions;
µÚ¶þ²½ÊÇÓÃÕýÔò±í´ïʽʶ±ðurl³¬Á´½Ó£º
regex urlregex = new regex(@"(http:\/\/([\w.]+\/@)\s*)",
   regexoptions.ignorecase|regexoptions.compiled);
ÕâÀïµÄ´úÂëÊÇÓÃÕýÔò±í´ïʽʶ±ðemailµØÖ·£º
regex emailregex = new regex(@"([a-za-z_0-9.-]+\@[a-za-z_0-9.-]+\.\w+)",
   regexoptions.ignorecase|regexoptions.compiled);
µÚÈý²½£¬µ±³ÌÐòÒѾ­Ê¶±ð³öurl³¬Á´½Ó»òemailµØÖ·ºó£¬±ØÐëÓÃ<a href=/knowskycom/...>³¬Á´½Ó</a>¶ÔÕâЩ³¬Á´½Ó½øÐÐÌæ»»£¬ÕâÑù²ÅÄܰÑÕâЩÎÄ×ÖÏÔʾΪÁ´½ÓµÄÐÎʽ¡£ÎÒÕâÀï°ÑËüÃÇÈ«²¿°üº¬ÔÚº¯ÊýÖУº
private void button1_click(object sender, system.eventargs e)
{
   string strcontent = inputtextbox.text;
   regex urlregex = new regex(@"(http:\/\/([\w.]+\/@)\s*)",
                    regexoptions.ignorecase| regexoptions.compiled);
   strcontent = urlregex.replace(strcontent,
                "<a href=/knowskycom/\"\" target=\"_blank\"></a>");
   regex emailregex = new regex(@"([a-za-z_0-9.-]+\@[a-za-z_0-9.-]+\.\w+)",
      regexoptions.ignorecase| regexoptions.compiled);
   strcontent = emailregex.replace(strcontent, "mailto:></a>");
   lbcontent.text += "<br&


Ïà¹ØÎĵµ£º

asp.net mvc 2

Controller needs to derive from Mvc.Controller
each controller function is assiaciaed with a default view by name
controller and viewer can exchange data by viewdata
use HTML.ActionLink to add a link on html page
a url is corresponding to a action method
in view, using HTML.BeginForm() will gen ......

Asp.netѧϰ·Ïß

1¡£Ê×ÏÈÊÇ»ù±¾Ô­Àí£¬±ÈÈç˵ÊÇlife cycle£¬Êý¾Ý¿â²Ù×÷µÈ¡£
2¡£Êµ¼ÊÏîÄ¿µÄʵ¼ù£¬Ç°Ò»½×¶ÎµÄ¹¤×÷ÔÚÕâ¸ö½×¶Î¼ìÑ飬ºÃÏñ×ö¸öÍøÕ¾Ã»ÓÐÏëÏóµÄÄÇô¼òµ¥¡£
3¡£Ñо¿Êµ¼ÊµÄ°¸ÀýºÍ¿ªÔ´¿ò¼Ü£¬µ½ÕâÀï²ÅÃ÷°×£¬Ô­À´ÍøÕ¾ÕâôµÄ×öµÄ£¬ºÃÏñÊÇûÓÐÄÇôÄѰ¡¡£
¼òµ¥µÄдд£¬¼Ç¼ÔÚʵ¼ÊÏîÄ¿ÖеĸÐÎò¡£ÓÚ2010-5-30Íí£¬¾ãÀÖ²¿¡£ ......

asp.net+jquery+xmlʵÏÖ×î¼òµ¥µÄÁÄÌìÊÒ

×î½üÔÚsina¿´nbaµÄÎÄ×ÖÖ±²¥µÄʱºò£¬¶ÔÍøÕ¾ÓÒϽǵÄÄÇÒ»¸öÁÄÌì´°¿Ú²úÉúÐËȤ£¬¾Í¾ö¶¨×Ô¼ºÒ²×öÒ»¸ö¡£
    ÉÏÍø²é²é×ÊÁÏ£¬ÕâÑùµÄÁÄÌìÊÒÎ޷ǾÍÊÇÓû§ÊäÈëÊý¾Ý´«µ½·þÎñÆ÷±£´æ£¬È»ºóÓû§Ò³ÃæÔÙʵʱµØ´ÓÊý¾Ý¿âÈ¡³öÊý¾Ý£¬ÏÔʾÔÚÒ³ÃæÉÏ£¬¼´¿ÉÍê³ÉÒ»´ÎÁÄÌì²Ù×÷¡£
   Ê×ÏÈÎÒ¶¨ÒåÁËÒ»¸öxmlÎļþ£¬ÓÃÓÚ±£´æÓû§ ......

asp.net mvcÇ¿´óµÄ·ÖÒ³¿Ø¼þMvcPager


²»¹ÜʹÓÃʲôÀ´¿ª·¢³ÌÐò£¬¶¼ÉÙ²»ÁËÐèÒª×ö·ÖÒ³£¬Ä¿Ç°Ê¹ÓÃasp.net
mvc¿ª·¢µÄwebÓ¦ÓóÌÐòµÄÈËÔ½À´Ô½¶àÁË£¬ÏàÓ¦µÄ¸¨Öú£¬Ìá¸ß¿ª·¢Ð§ÂʵÄhelper·½·¨¡¢¿Ø¼þ¶¼½«»á³öÏÖ¡£½ñÌìÎÒÏò´ó¼Ò½éÉÜÒ»¿îÔÚasp.net
mvc¿ò¼ÜÖÐʹÓõķÖÒ³¿Ø¼þ¡£±¾ÈËÒ²ÊÇÔÚÐÂÄêµÄʱºò³õ´ÎʹÓ㬵«ÊÇһֱûÓÐÍÆ¼ö¸ø´ó¼Ò¡£ÀûÓÃÎåÒ»ÐÝϢʱ¼äÒ²¾Í½éÉܸø´ó¼Ò¡£Éùà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ