ASP.NETÒ³ÃæÌøתµÄÈý´ó·½·¨Ïê½â
ASP.NETÒ³ÃæÌøתÓÐʲô·½·¨ÄØ£¿£¬ÏÖÔÚ¸ø´ó¼Ò½éÉÜÈýÖÖ·½·¨£¬ËûÃǵÄÇø±ðÊÇʲôÄØ£¿ÈÃÎÒÃÇ¿ªÊ¼°É£º ASP.NETÒ³ÃæÌøת1¡¢response.redirect Õâ¸öÌøתҳÃæµÄ·½·¨ÌøתµÄËٶȲ»¿ì£¬ÒòΪËüÒª×ß2¸öÀ´»Ø(2´Îpostback)£¬µ«Ëû¿ÉÒÔÌøתµ½ÈκÎÒ³Ã棬ûÓÐÕ¾µãÒ³ÃæÏÞÖÆ(¼´¿ÉÒÔÓÉÑÅ»¢Ìøµ½ÐÂÀË)£¬Í¬Ê±²»ÄÜÌø¹ýµÇ¼±£»¤¡£µ«ËÙ¶ÈÂýÊÇÆä×î´óȱÏÝ!redirectÌøת»úÖÆ£ºÊ×ÏÈÊÇ·¢ËÍÒ»¸ö httpÇëÇ󵽿ͻ§¶Ë£¬Í¨ÖªÐèÒªÌøתµ½ÐÂÒ³Ã棬Ȼºó¿Í»§¶ËÔÚ·¢ËÍÌøתÇëÇóµ½·þÎñÆ÷¶Ë¡£ÐèҪעÒâµÄÊÇÌøתºóÄÚ²¿¿Õ¼ä±£´æµÄËùÓÐÊý¾ÝÐÅÏ¢½«»á¶ªÊ§£¬ËùÒÔÐèÒªÓõ½session¡£ ASP.NETÒ³ÃæÌøת2¡¢server.transfer Ëٶȿ죬ֻÐèÒªÒ»´Îpostback ,µ«ÊÇ¡£¡£¡£¡£Ëû±ØÐëÊÇÔÚͬһ¸öÕ¾µãÏ£¬ÒòΪËüÊÇserverµÄÒ»¸ö·½·¨¡£ÁíÍ⣬ËûÄÜÌø¹ýµÇ¼±£»¤¡£Äã¿ÉÒÔд¸öС³ÌÐòÊÔÊÔ£ºÉè¼ÆÒ»¸öÓÉÒ³ÃæÒ»µ½Ò³Ãæ¶þµÄÌøת£¬µ«Òª½øÈëµ½Ò³Ãæ¶þÐèÒªµÇ¼£¬formÈÏÖ¤£¬µ«Èç¹ûÌøתÓï¾äʹÓÃtransferµÄ»°£¬ÄǾͲ»»áµ¯³öµÇ¼ҳÃæÁË¡£Õâ¸ö·½·¨µÄÖض¨ÏòÇëÇóÊÇ·¢ÉúÔÚ·þÎñÆ÷¶Ë£¬ËùÒÔä¯ÀÀÆ÷µÄurlµØÖ·ÈÔÈ»±£ÁôµÄÊÇÔÒ³ÃæµÄµØÖ·! ASP.NETÒ³ÃæÌøת3¡¢sever.execute Õâ¸ö·½·¨Ö÷ÒªÊÇÓÃÔÚÒ³ÃæÉè¼ÆÉÏÃ棬¶øÇÒËû±ØÐëÊÇÌøתͬһվµãϵÄÒ³Ãæ¡£Õâ¸ö·½·¨ÊÇÐèÒª½«Ò»¸öÒ³ÃæµÄÊä³ö½á¹û²åÈëµ½ÁíÒ»¸öaspxÒ³ÃæµÄʱºòʹÓ㬴󲿷ÖÊÇÔÚ±í¸ñÖУ¬½«Ä³Ò»¸öÒ³ÃæÀàËÆÓÚǶÌ׵ķ½Ê½´æÔÚÓÚÁíÒ»Ò³Ãæ¡£ ASP.NETÒ³ÃæÌøת×ܽ᣺ µ±ÐèÒª°ÑÓû§Ìøתµ½Áíһ̨·þÎñÆ÷ÉϵÄÒ³ÃæµÄʱºò £¬Ê¹ÓÃredirect µ±ÐèÒª°ÑÓû§Ìøתµ½·ÇaspxÒ³Ãæʱºò£¬Èçhtml£¬Ê¹ÓÃredirect ÐèÒª°Ñ²éѯ×Ö·û´®×÷ΪurlÒ»²¿·ÖµÄʱºò±£Áô´«¸ø·þÎñÆ÷µÄʱºò£¬ÒòΪÆäËû2ÖÖ·½·¨²»ÄÜ×öµ½2´Îpostback£¬°ÑÊý¾ÝÏÈ´ø»Ø·þÎñÆ÷£¬Ê¹ÓÃredirect ÐèÒªaspxÒ³Ãæ¼äµÄת»»(²»Éæ¼°µÇ¼)£¬Ê¹ÓÃtransfer µ±ÐèÒª°ÑaspxÒ³ÃæµÄÊä³ö½á¹û²åÈëµ½ÁíÒ»¸öaspxÒ³ÃæµÄʱºòʹÓà execute·½·¨
Ïà¹ØÎĵµ£º
1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(" <script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')
</script>");
Response.Write(" <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>");
2.//µ¯³ö¶Ô»°¿ ......
[url=http://www.bvbuy.cn/]·çÓïÍø[/url]
1.ǰ̨ҳÃæÒ»°ã²»ÓÃgridview datalist treeview updatepanel µÈ¿Ø¼þ£¬ÒòΪËûÃÇ»áÉú³ÉºÜ¶àÎÒ²»ÏëÒªµÄ´úÂë¡£¶øÇÒǶÌ×Ò»´ó¶Ñtable
2.ÓÃrepeater+div+css+ul liÒѾ×ã¹»ÎÒ×öºÜ¶à¶«Î÷ÁË¡£
3.·¢²¼ºóµÄÒ³Ã棬¿ÉÒÔ°ÑһЩ¿ÕÐкͻ»ÐÐ ºÍһЩ²»±ØÒªµÄ¿Õ¸ñÈ¥µô£¬¾¡Á¿¼õÉÙaspxÒ³ÃæµÄÈÝÁ¿¡£ÌḠ......
Ucase(string) ½«×Ö·û´®×ª»»Îª´óд¡£
Val(string) ½«´ú±íÊý×ÖµÄ×Ö·û´®×ª»»ÎªÊýÖµÐÍ̬£¬Èô×Ö·û´®Öк¬ÓзÇÊý×ÖµÄÄÚÈÝÔò»á½«ÆäÈ¥³ýºó£¬ºÏ²¢ÎªÒ»Êý×Ö¡£
Weekday(date) È¡µÄ²ÎÊýÖеÄÈÕÆÚÊÇÒ»¸öÐÇÆڵĵڼ¸Ì죬ÐÇÆÚÌìΪ1¡¢ÐÇÆÚһΪ2¡¢ÐÇÆÚ¶þΪ3 ÒÀ´ËÀàÍÆ¡£
WeekDayName(number) ÒÀ½ÓÊյIJÎÊýÈ¡µÃÐÇÆÚµÄÃû³Æ£¬¿É½ÓÊյIJÎÊýΪ1 µ½ ......
2ÖÖ·½·¨
Ò»¡¢linkbuttonµÄµ¥»÷ʼþÀï¹Ø±ÕÒ³Ã棬ƴ½Ó´úÂë¾ÍÊÇÁË
²¹³ä£¬²»¿ÉÄÜ£¬ÎÒ×Ô¼ºÊÔ¹ý£¬ÔÙ²¹³äÒ»ÏÂ
1.¹Ø±ÕʱÌáʾ“ÊÇ·ñ¹Ø±Õ”
Response.Write("<script language:javascript>javascript:window.close();</script>");
2.Ö±½Ó¹Ø±Õ²»Ìáʾ
Response.Write("<script language:javascrip ......
ÔÚÒ»¸öСÐÍÏîÄ¿ÖУ¬ÎÒʹÓÃÁËAjax ExtensionsÖеÄUpdatePanel¿Ø¼þ£¬ÔÚ±¾µØµ÷ÊÔÔËÐÐʱºÃµÄ£¬¿ÉÒÔ¿´µ½ajaxµÄÒ첽ˢÐÂЧ¹û£¬µ«Êǵ±·¢²¼µ½°²×°ÁË.net framework 3.5 sp1µÄserver 2003ÉÏÈ¥Ö®ºó£¬·¢ÏÖajaxЧ¹ûûÓÐÁË£¬Ò²¾ÍÊÇ˵±¾À´µÄÒì²½Ìá½»±ä³ÉÁË·ÇAjax·½Ê½µÄPOST£¬¶øÇÒûÓб¨¸æÈκδíÎó¡£
¶Ô±È¿ª·¢Ê±ºÍÔËÐÐ ......