ÍƼöasp.netµ×²ãÔÀíÊé¼® - .NET¼¼Êõ / ASP.NET
ͨ¹ý´¥·¢html¿Ø¼þµÄÒ»¸öʼþ£¬»áÒý·¢Ò»¶Î½Å±¾´úÂ룻µ±´¥·¢Ò»¸ö·þÎñÆ÷¿Ø¼þµÄʼþʱ£¬·þÎñÆ÷¶Ë»áÏìÓ¦¿Í»§µÄ²Ù×÷¡£ÆäÖзþÎñÆ÷¶ËÊÇÈçºÎÖªµÀÔõÑùÏìÓ¦¿Í»§¶ËµÄÇëÇóµÄÄØ£¬·þÎñÆ÷¶ËÓÖÊÇÔõô»ñµÃËùÐèÒªµÄ¿Í»§¶ËÊý¾ÝµÄ£¬¾ßÌåµÄÁ÷³ÌÊÇÔõôÑùµÄ£¬´Ó¿Í»§¶Ë´¥·¢Ä³¸öʼþ¿ªÊ¼£¬µ½·þÎñÆ÷¶Ë½«½á¹û·µ»Øµ½¿Í»§¶Ë£¬ÕâÆäÖеľßÌåÁ÷³Ìϸ½ÚÊÇÔõôÑùµÄ£¬ÔÀíÈçºÎ¡£ ÎÒÏëÎʵÄÊÇ£¬ÓÐûÓÐÖ÷Òª½éÉÜÕâЩµ×²ãµÄÔÀíºÍʵÏÖϸ½ÚµÄºÃµÄÊé¼®£¿
MSDN ÔÚASP.NETÓ¦ÓóÌÐòÏÔʾµÄÒ³ÃæÉÏÃæµã»÷Ò»¸öButton¾Í»áµ¼ÖÂÒ³ÃæÌá½»£¬²¢ÇÒÔÚ·þÎñÆ÷¶ËÒý·¢¶ÔÓ¦µÄPostBackʼþ ͨ¹ýReflector²é¿´ PageÀàÐ͵ÄRaisePostBackEvent·½·¨ <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" /> <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" /> µã»÷Buttonʱ,¿Í»§¶Ë»áͨ¹ýJavaScript½«±»µã»÷µÄLinkButtonµÄNameºÍ¶ÔÓ¦ µÄ²ÎÊý´æ´¢ÔÚÕâ2¸öhidden inputÖÐ,È»ºóÌá½»Ò³Ãæ,Ò³Ãæ»á½«Õâ2¸öhidden input ´ò°ü,ÒÔkey-valueµÄÐÎʽ´«»Øµ½·þÎñÆ÷¶Ë,·þÎñÆ÷¶Ë¾Í¿ÉÒÔͨ¹ý postData["__EVENTTARGET"] À´»ñÈ¡¾¿¾¹ÊÇʲôÒý·¢Ò³Ãæ»Ø´«ÒýÓà ͨ¹ý´¥·¢html¿Ø¼þµÄÒ»¸öʼþ£¬»áÒý·¢Ò»¶Î½Å±¾´úÂ룻µ±´¥·¢Ò»¸ö·þÎñÆ÷¿Ø¼þµÄʼþʱ£¬·þÎñÆ÷¶Ë»áÏìÓ¦¿Í»§µÄ²Ù×÷¡£ÆäÖзþÎñÆ÷¶ËÊÇÈçºÎÖªµÀÔõÑùÏìÓ¦¿Í»§¶ËµÄÇëÇóµÄÄØ£¬·þÎñÆ÷¶ËÓÖÊÇÔõô»ñµÃËùÐèÒªµÄ¿Í»§¶ËÊý¾ÝµÄ£¬¾ßÌåµÄÁ÷³ÌÊÇÔõôÑùµÄ£¬´Ó¿Í»§¶Ë´¥·¢Ä³¸öʼþ¿ªÊ¼£¬µ½·þÎñÆ÷¶Ë½«½á¹û·µ»Øµ½¿Í»§¶Ë£¬ÕâÆäÖеľßÌåÁ÷³Ìϸ½ÚÊÇÔõôÑùµÄ£¬ÔÀíÈçºÎ¡£ ÎÒÏëÎʵÄÊÇ£¬ÓÐûÓÐÖ÷Òª½éÉÜÕâЩµ×²ãµ
Ïà¹ØÎÊ´ð£º
ÓÐÒ»¸öÀà class adc { dim a,b,c } ÈçºÎÔÚÁíÍâÒ»¸öÀàÖÐÈ¡µÃÀà³ÉÔ±¼°³ÉÔ±¸öÊý class getmenber { dim menbers() function getmenbers(resclass) 'resΪһδ֪Àà 'getmenber ......
aspÐéÄâÖ÷»úʵÏÖα¾²Ì¬µÄ·½·¨£º 1¡¢ ÖØдurl²ÎÊý Step1: ½¨Á¢Ç°Ì¨Îļþindex.asp£¬ÐÞ¸Äurl²ÎÊýÐÎʽ¡£ÓÉÓÚ¶ÁÈ¡Êý¾Ý¿âÖеļǼ²»ÊÇרÌâµÄÖص㣬¹ÊÖ±½Ó¸ø³ö: <!--#include file="config.asp" --> &l ......
ÎÒÓÐÁ½¸ödropdownlist¶¼°óºÃÁËÖµ£¬ÏëÑ¡ÖÐÒ»¸ödropdownlistÖеÄÖµ£¬È»ºóÔÚÁíÒ»¸ödropdownlistÖÐÑ¡ÖÐÏàÓ¦µÄÒ»Ïî¡£ ²»ÊÇ´Óа󶨵ڶþ¸ödropdownlist£¬ÊÇÔÚÒѾ°óºÃµÄÖµµ±ÖÐÑ¡ÖÐÒ»¸ö¡£ ÎÒÏëÓÃjsд ÇóÖú Äã¿ÉÒÔ°Ñdrop ......
´úÂëÈçÏ Çë¸ßÊÖ Ö¸µãÏ лл ajax_http.js ------------- function getXMLHTTP() { var xmlhttp; if (window.ActiveXObject) { //IE try { ......
sqlserverµÄÊý¾Ý¿â£¬×Ö¶ÎÊÇimageÀàÐ͵ġ£Ôõôд´úÂ룬ÔÚÒ³ÃæÖеã»÷¡°ÏÂÔØ¡±¾ÍÄÜ´ò¿ªÄǸöÏÂÔضԻ°¿ò£¿ PS£ºOracleLob ÔÚsqlserverÀïÊÇʲô£¿ Response.Redirect("test.jpg") ÒýÓà Response.Redirect( ......