asp.netʵÏÖα¾²Ì¬
webconfigα¾²Ì¬
<system.web>
<httpHandlers>
<add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter"/>
<add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter"/>
</httpHandlers>
</system.web>
<configuration>
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/r_(.[\d]*).html</LookFor>
<SendTo>~/readbook.aspx?xd=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/(.[\d]*)_(.[\d]*).html</LookFor>
<SendTo><![CDATA[~/bookpage.aspx?cid=$1&xd=$2]]></SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/page(.[\d]*)_(.[\d]*).html</LookFor>
<SendTo><![CDATA[~/bookstore.aspx?page={0}&page1=$1&page2=$2]]></SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/page_b(.[\d]*).html</LookFor>
<SendTo><![CDATA[~/bookstore.aspx?page={0}&page2=$1]]></SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
</configuration>
ÐèҪעÒâµÄÊÇÐèÒªÔÚinternet¹ÜÀíÖÐIISÅäÖÃÌí¼ÓC:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll£¬²¢ÇÒ°ÑÀ©Õ¹ÃûÐÞ¸ÄΪ£º.html£¬£¬£¬£¬ÊÇ·ñ¼ì²éÎļþµÄÑ¡Ôñ¹´µô
Ïà¹ØÎĵµ£º
//¿ª·¢»·¾³£ºWindow 2000¡¢SQLServer2000¡¢.Net Framework SDKÕýʽ°æ
//¿ª·¢ÓïÑÔ£ºC#¡¢ASP.Net
//¼ò½é£ºÊý¾Ý¿âÖÐͼƬ´æÐî¼°¶ÁÈ¡
//×÷Õߣºengine
/*
˵Ã÷£ºÔÚASPÖУ¬ÎÒÃÇÓÃRequest.TotalBytes¡¢Request.BinaryRead()À´ÉÏ´«Í¼Æ¬£¬Õâ¸ö¿É¶ñµÄBinaryRead()·½·¨·Ç³£±¿£¬µ¥¸öÎļþÉÏ´«µ¹Ã»Ê²Ã´´óÊ£¬µ¥Èç¹û¶à¸öͼƬÉÏר¿É¾Í»¨ ......
Iframe±ê¼Ç£¬Óֽи¡¶¯Ö¡±ê¼Ç£¬Äã¿ÉÒÔÓÃËü½«Ò»¸öHTMLÎĵµÇ¶ÈëÔÚÒ»¸öHTMLÖÐÏÔʾ¡£Ëü²»Í¬ÓÚFrame±ê¼Ç×î´óµÄÌØÕ÷¼´Õâ¸ö±ê¼ÇËùÒýÓõÄHTMLÎļþ²»ÊÇÓëÁíÍâµÄHTMLÎļþÏ໥¶ÀÁ¢ÏÔʾ£¬¶øÊÇ¿ÉÒÔÖ±½ÓǶÈëÔÚÒ»¸öHTMLÎļþÖУ¬ÓëÕâ¸öHTMLÎļþÄÚÈÝÏ໥Èںϣ¬³ÉΪһ¸öÕûÌ壬ÁíÍ⣬»¹¿ÉÒÔ¶à´ÎÔÚÒ»¸öÒ³ÃæÄÚÏÔʾͬһÄÚÈÝ£¬¶ø²»±ØÖظ´Ð´ÄÚÈ ......
ʹÓà ASP.NET ImageMap ¿Ø¼þ´´½¨¾ßÓÐÓû§¿ÉÒÔµ¥»÷µÄµ¥¸öÇøÓòµÄͼÏñ£¬ÕâЩµ¥¸öÇøÓò³ÆΪ×÷Óõ㡣ÿһ¸ö×÷Óõ㶼¿ÉÒÔÊÇÒ»¸öµ¥¶ÀµÄ³¬Á´½Ó»ò»Ø·¢Ê¼þ¡£
Ò»¡¢±³¾°
ImageMap ¿Ø¼þÓÉÁ½¸öÔªËØ×é³É¡£µÚÒ»¸öÊÇͼÏñ£¬Ëü¿ÉÊÇÈκαê×¼ Web ͼÐθñʽµÄͼÐΣ¬Èç .gif¡¢.jpg »ò .png Îļþ¡£
µÚ ......
Áù¡¢CircleHotSpot Àà
ÔÚ ImageMap ¿Ø¼þÖж¨ÒåÔ²ÐÎ×÷ÓõãÇøÓò¡£ÎÞ·¨¼Ì³Ð´ËÀà¡£
´ËÀàÔÚ ImageMap ¿Ø¼þÖж¨ÒåÒ»¸öÔ²ÐÎ×÷ÓõãÇøÓò¡£ÈôÒª¶¨Òå CircleHotSpot ¶ÔÏóÇøÓò£¬Ç뽫 X ÊôÐÔÉèÖÃΪ±íʾԲÐÎÇøÓòÖÐÐÄµÄ x ×ø±êµÄÖµ¡£½« Y ÊôÐÔÉèÖÃΪ±íʾԲÐÎÇøÓòÖÐÐÄµÄ y ......
ASP.NET
¹«ÓÐÁùÖÖÑéÖ¤¿Ø¼þ£¬·Ö±ðÈçÏ£º
RequiredFieldValidator
£¨±ØÐë×Ö¶ÎÑéÖ¤£© ÓÃÓÚ¼ì²éÊÇ·ñÓÐÊäÈëÖµ
CompareValidator
£¨±È½ÏÑéÖ¤£© °´É趨±È½ÏÁ½¸öÊäÈë
RangeValidator
£¨·¶Î§ÑéÖ¤£© ÊäÈëÊÇ·ñÔÚÖ¸¶¨·¶Î§
RegularExpressionValidator
£¨ÕýÔò±í´ïʽÑéÖ¤£© ÕýÔò±í´ïʽÑéÖ¤¿Ø¼þ
CustomValid ......