asp.net±íµ¥Ìá½»µÄÎÊÌâ - .NET¼¼Êõ / ASP.NET
Ïò¸÷λÇë½Ì¸öÎÊÌ⣺
ÏÖÓÐÒ»¸ö±íµ¥£¬ÀïÃæÓÐЩ±íµ¥Êý¾ÝºÍÒ»×鵥ѡ°´Å¥£¬È»ºó¸ù¾Ýµ¥Ñ¡°´Å¥ËùÑ¡µÄ²»Í¬Öµ£¬°Ñ±íµ¥Ìá½»µ½²»Í¬µÄÒ³Ãæ£¬asp.netÓÐÏñjspÄÇÑù°Ñ±íµ¥Ìá½»µ½Ò»¸öactionÀȻºóÔÙÓÉÕâ¸öactionÈ¥¿ØÖÆÓ¦¸ÃÌá½»µ½Äĸö±íµ¥µÄÀàËÆ´úÂëÂð£¿Ð»Ð»
²»Á˽âjsp
°ï¶¥
ÔÚ.cs ÓÃbutton_Click()ʼþ½øÐÐÅжÏÌá½»£¬¸ù¾Ýserver¿Ø¼þ²»Í¬µÄÖµresponse.redrictµÀ²»Í¬µÄÒ³Ãæ
¶¥
ÒýÓà 2 Â¥ teresa_tanxiaoguang µÄ»Ø¸´:
ÔÚ.cs ÓÃbutton_Click()ʼþ½øÐÐÅжÏÌá½»£¬¸ù¾Ýserver¿Ø¼þ²»Í¬µÄÖµresponse.redrictµÀ²»Í¬µÄÒ³Ãæ°ï¶¥£¬
ÔÚcsºǫ́´úÂëÎļþÖбàÂëÅжϾͿÉÒÔÁ˰É
Ó¦¸ÃÊÇûÓÐµÄ ²»¹ý¿ÉÒÔÓÃjsÄ£Äâ³öÀ´
°´Å¥Óиö PostBackUrl Õâ¸öÊÇÖ¸ÏòÄãÒªÌá½»µÄÒ³Ãæ
Ö÷ÒªµÄ´úÂë¾ÍÊÇjsÕâ¿é
ÔÚµã»÷°´Å¥Ê±Ö´ÐÐÒ»¸öʼþ ÔÚʼþÖиù¾Ýµ¥Ñ¡µÄÊý¾ÝÀ´¸ü¸ÄbuttionµÄPostBackUrl ×îºóÔÙÌá½»
ÔÚʼþÖÐ
ÓÃÈç¹ûÑ¡ÖеÄÖµÀ´µ÷Ó÷½·¨
Ò²ÊÇûÎÊÌâµÄ£¡
C# code:
switch()
{
case radiobutton1:
response.redirect();
break;
}
Ò²¿ÉÒÔ°ÑradiobuttonµÄAutopostbackÉèÖóÉtrue£¬ÏëÌøÄĸöÒ³Ãæ»¹²»ÊÇ×Ô¼º¶¨Ò壿
ºÇºÇ java¿ª·¢Õß jspºÍASP.NETµÄ±à³Ì·½Ê½ÊǺܲ»Í¬µÄ ASP.NETÖÐĬÈϵÄACTIONÊDZ¾Ò³ ÿ¸öÒ³Ãæ¶¼¶ÔÓ¦Ò»¸ö.CSÎļþÕâ¸öÀàËÆÄãÃÇjavaÖеÄjavaÀàÎļþ ¾ÍÊÇactionÌá½»
Ïà¹ØÎÊ´ð£º
ÎÒÓÃasp.net¿ª·¢wapÕ¾µã£¬Íê³ÉºóÈ¥http://validator.w3.org/ÕâÀïÑéÖ¤ÎÒµÄWapÒ³ÃæÊÇ·ñ±ê×¼£¬ÆäËüÎÊÌâ¶¼¸ÄºÃÁË£¬
¾ÍÊ£ÕâÒ»¸ö´íÎóÁË£¬°´×ÖÃæÒâ˼Àí½âÊÇ˵nameÊôÐÔÒÑ´æÔÚ£¬ÀàËÆÕâÑùµÄ´íÎó»¹Óв»ÄÜÓÃborder ,align,sizeµ ......
1.asp.net×öµÄÒ»¸ö´ðÌâÒ³Ãæ£¬ÈçºÎʵʱÏÞʱºó×Ô¶¯Ìá½»£¬Çë´ó¼Ò¸øµã˼·
ÏÞʱµÄʱ¼äÐÅÏ¢´æ·ÅÔÚÊý¾Ý¿âÖÐ
2.Èç¹û´ðÌâʱ¼äÉèÖõĽϳ¤£¬ÈçºÎ·½Ê½session³¬Ê±ºóÒ³ÃæÎÞЧ
лл
ÓÃjs·½·¨À´¿ØÖÆ
»Ø¸´ÄÚÈÝÌ«¶ÌÁË¡£¡£
js ......
¾ÍÊÇÒ»¸ö°´Å¥£¬µã»÷Ö®ºó´ò¿ª¶Ô»°¿ò£¬È»ºóѡȡͼƬ¡£¾ÍÕâÑùÉÏ´«¡£¡£
ÔõôʵÏÖ¡£ÔÚÍøÉÏËѵ½ÄÇô¶àµÄ´úÂ룬ȫÊǺܶàµÄÄÇÖÖ£¬²»ÖªµÀ£¬¿´²»ÏÂÈ¥¡£
ËùÒÔÔÚÕâÀïÏëÇë´ó¸ç´ó½ã°ï°ïæ¡£
ʹÓÃ×Ô´øµÄfileupload¿Ø¼þ¿ÉÒÔʵÏÖ ......
ÎÒÓÐÁ½¸ödropdownlist¶¼°óºÃÁËÖµ£¬ÏëÑ¡ÖÐÒ»¸ödropdownlistÖеÄÖµ£¬È»ºóÔÚÁíÒ»¸ödropdownlistÖÐÑ¡ÖÐÏàÓ¦µÄÒ»Ïî¡£
²»ÊÇ´Óа󶨵ڶþ¸ödropdownlist£¬ÊÇÔÚÒѾ°óºÃµÄÖµµ±ÖÐÑ¡ÖÐÒ»¸ö¡£
ÎÒÏëÓÃjsд
ÇóÖú
Äã¿ÉÒÔ°Ñdrop ......
ÎÒ×î½ü×öÁËÒ»¸öÍøÕ¾ÊǹØÓÚ²úƷչʾµÄ ~ Õû¸öÍøÕ¾Í¼Æ¬¶¼Õ¼ÓÃÁËÒ»´ó°ë
ÕâÑùµÄ»°·ÃÎÊËٶȾͷdz£Âý ÓÐʲô°ì·¨¿ÉÒÔ½â¾öÂð£¿
Âé·³´ó¼Ò¶à¶à¸øµãÒâ¼û £¡ ÓÐʲô¾¡¹Ü˵
3Q´ó¼Ò
htmlÒ³Ãæ.
Õâ¸ö,¼ÈÈ»Ö÷Ò ......