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

aspµÄ19¸ö»ù±¾¼¼ÇÉ

1. ÏÖÔÚµÄÈÕÆÚʱ¼äÃüÁîÊÇ <%=now%> ¼´¿É
2.ASPÈ¡µÃ±í¸ñ(from)Êý¾ÝÊäÈëµÄ·½·¨£¬ÊÇʹÓÃÒ»¸öÄÚÖõĶÔÏó(object)—Requect, ËüÒÔget,post¶øÒì¡£
3.ÈôÒª×Ô¼ºÓÃVB»òÆäËüÓïÑÔ±àд£¬.dllÎļþ¹©ASPʹÓÃÐ轫DLLÎļþ×¢²á·½¿É£ºDOSÏÂÊäÈë regsbr32 *.dll
4.ÏÔʾÎå¸öÖظ´µÄ¾ä×Ó£¬×ÖÌåÔ½À´Ô½´ó <% for i=1 to 5 %> <font size=<% =i %> color=#00ffff> ¿ìËÙASP </font> <br> <% next %>
5.´«ËÍ×Ö·û´®µ½Óû§¶Ë response.write string È磺<% response.write "Welcome" %>
6.Á´½Óµ½Ö¸¶¨µÄURLµØÖ· response.redirect url È磺 <% response.redirect "homepage.asp" %>
*µ«ÊÇÈç¹û´Ë.ASPµÄÎļþÄÚÈÝÒѾ­´«Ë͵½Óû§¶Ï£¬ÔòÔÙÓÃredirectʱ»á·¢Éú´íÎó¡£
7.ÆäËûÓïÑÔÓëASPµÄ½áºÏ£ºÈ磺ÔçÉÏÏÔʾÔç°²£¬ÏÂÎçÏÔʾÄãºÃ <% if time>+#12:00:00 AM# and time<#12:00:00 PM # then greeting="Ôç°²!" else greeting="ÄãºÃ!" end if %> <%=greeting %>
8.<script>±ê¼ÇÔÚASPÖеÄÓ¦ÓÃÀý£º
<html> <body> <% call function1 %> </body> </html> <script runat=server language=javascript> function function1() { ... } </script>
9.#include °üÀ¨ÆäËüÎļþ <!--#include virtual|file="filename"--> virtualÖ¸ÐéÄâµÄÎļþµØÖ·¡£ file ´ú±í¾ø¶ÔµÄÎļþµØÖ·¡£È磺 <!--#include virtual="/booksamp/test.asp"--> <!--#include file="/test/test.asp"-->
¶øÇÒ¿ÉÒÔ²ã²ãǶÌס£ÁíÍâ#include ²»ÄÜÔÚ<%--%>Ö®ÄÚ
10.ASPÈ¡µÃ±í¸ñÊäÈëÊý¾ÝµÄ·½·¨£ºGET POST Ò».get:Óû§¶Ë½«Êý¾Ý¼Óµ½URLºó£¬¸ñʽΪ”£¿×Ö¶Î1=ÊäÈëÊý¾Ý1&×Ö¶Î2=ÊäÈëÊý¾Ý2&...", ÔÙ½«ÆäË͵½·þÎñÆ÷¡£Èç: actionΪwww.abc.com, ×Ö¶ÎNameÊäÈëÊý¾ÝΪjack,×Ö¶ÎageµÄÊý¾ÝΪ15£¬ÔòÓÃget·½·¨Îª http://www.abc.com?Name=jack&Age=15
¶þ.post:Óû§¶ËÓÃhttpÐÅÏ¢Êý¾Ý´«Ë͵½·þÎñÆ÷ ASPÖУº get:ʹÓÓÊäÈëÊý¾Ý= Request.QueryString("×Ö¶ÎÃû")",½«¸½¼ÓÓÚURLµÄÊý¾ÝÈ¡³ö¡£ post:ʹÓÓÊäÈëÊý¾Ý=Request.Forml"(×Ö¶ÎÃû")",¶ÁÈ¡HTTPÐÅÏ¢Êý¾Ý×ֶΡ£ * Request.QueryString·¶ÀýÈ磺¡´A hery="aspform.asp?Name=jack&Age=15"> °´´Ë¡´/A¡µ¡´p¡µ Name:<%=request.QueryString("Name")%) Age:<%=request.QeueryString("Age")%) * get ·¶Àý ·asp


Ïà¹ØÎĵµ£º

aspÊý¾Ý¿â²Ù×÷

ASPÁ¬½ÓÊý¾Ý¿â
¡¡¡¡ASPÁ¬½Ó11ÖÖÊý¾Ý¿âÓï·¨×ܽá
¡¡¡¡¾­³£Ê¹Óõ½ÓйØÊý¾Ý¿âµÄ²Ù×÷¡£°üÀ¨Á¬½Ó´úÂë¡¢SQLÃüÁîµÈµÈ£¬ÓÖ²»Ôø¿ÌÒâÈ¥¼ÇÒäËüÃÇ£¨ÎÒ±¾ÈËÊDz»Ô¸ÒâÈ¥¼ÇÕⶫ¶«£©£¬ËùÒÔ³£³£ÔÚÓõ½µÄʱºòÓÖÈ¥²éÊé±¾£¬·­À´·­È¥¡£Ò»Ð©±È½ÏÉÙÓõÄÊý¾Ý¿â»¹²»Ò»¶¨ÄÜ˳ÀûÕÒµ½£¬ËùÒÔÏÖÔÚ°ÑËüÃÇÈ«¹éÄɵ½ÕâÀÌṩ´ó¼Ò²Î¿¼¡£
¡¡¡¡<Ò»>Êý¾Ý ......

asp»ñÈ¡URLµÄ·½·¨

·½·¨Ò»£º¼òµ¥£¬µÃ²»µ½²ÎÊý£¬Ö»ÓÐÒ»¸öÐéÄâ·¾¶
GetUrl =request("url")
ÀýÈ磺http://127.0.0.1/shiyan.asp?dfsdfsf=dsfsdfd&aa=dddd
»ñȡΪ:shiyan.asp
·½·¨¶þ£ºµÃµ½Õû¸öURL£¬µÃµ½²ÎÊý
'µÃµ½µ±Ç°Ò³ÃæµÄµØÖ·    
Function   GetUrl()    
On   Er ......

ASPÍøÕ¾Êý¾Ý¿â±»¹ÒľÂíÔõô°ì

˵ÔÚÇ°ÃæµÄ»°£º
Òª·ÀÊý¾Ý¿âľÂí£¬Æäʵ×î¼òµ¥²»¹ý£¬±¾ÈËÈÏΪ£¬ÍøÉÏËùνµÄ×¢Èë·½·¨£¬¶¼ÊÇЩС¶ù¿Æ¡£Ö»ÒªÄã²»ÈÃÊý¾Ý¿âÔËÐУ¬Ëü×¢ÈëÁËASPľÂíÓкÎÓã¿£¡Ö»ÒªÄãÊä³öʱÓÐÑϸñµÄ¹ýÂË£¬Ëü×¢ÈëÁËJS´úÂëÓкÎÓã¿£¡
¾ßÌå·½·¨ÈçÏ£º
Ò»¡¢°ÑÊý¾Ý¿â¸ÄΪASP¸ñʽ£¬²¢¼ÓÈëÒ»¸ö±í£¬ÀïÃ潨¸ö×ֶΣ¬¼ÓÈëһЩIISϵͳ¼¶µÄ´íÎó´úÂë»òOleÊý¾Ý£¬¼´ ......

ASP.NET ÈçºÎ£ºÒÔ±à³Ì·½Ê½ÑéÖ¤ ASP.NET ·þÎñÆ÷¿Ø¼þ


      ĬÈÏÇé¿öÏ£¬ÔÚÒ³»Ø·¢µ½·þÎñÆ÷ʱ¡¢Ò³³õʼ»¯Ö®ºó£¨¼´ÊÓͼ״̬ºÍ»Ø·¢Êý¾ÝÒÑ´¦ÀíÖ®ºó£©ºÍµ÷ÓÃʼþ´¦Àí´úÂë֮ǰ£¬ASP.NET ÑéÖ¤¿Ø¼þ½«×Ô¶¯Ö´ÐÐÑéÖ¤¡£Èç¹ûä¯ÀÀÆ÷Ö§³Ö¿Í»§¶Ë½Å±¾£¬¿Ø¼þÒ²¿ÉÒÔÔÚä¯ÀÀÆ÷ÖÐÖ´ÐÐÑéÖ¤¡£
µ«ÊÇ£¬ÓÐʱÄú¿ÉÄÜÐèÒªÒÔ±à³Ì·½Ê½Ö´ÐÐÑéÖ¤¡£ÔÚÒÔÏÂÇé¿öÏ£¬Äú¿ÉÄÜÐèҪͨ¹ý±à³ÌÀ´½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ