asp.netÃæÊÔÌâ(3)
21.ÔÚ.netÖУ¬Åä¼þµÄÒâ˼ÊÇ£¿
´ð£º³ÌÐò¼¯¡££¨ÖмäÓïÑÔ£¬Ô´Êý¾Ý£¬×ÊÔ´£¬×°ÅäÇåµ¥£©
22.³£Óõĵ÷ÓÃwebserviceµÄ·½·¨ÓÐÄÄЩ£¿
´ð£º1.ʹÓÃwsdl.exeÃüÁîÐй¤¾ß¡£
2.ʹÓÃvs.netÖеÄadd web reference²Ëµ¥Ñ¡Ïî
23..net remoting µÄ¹¤×÷ÔÀíÊÇʲô£¿
´ð£º·þÎñÆ÷¶ËÏò¿Í»§¶Ë·¢ËÍÒ»¸ö½ø³Ì±àºÅ£¬Ò»¸ö³ÌÐòÓò±àºÅ£¬ÒÔÈ·¶¨¶ÔÏóµÄλÖá£
24.ÔÚc££ÖУ¬string str = null Óë string str = “” Ç뾡Á¿Ê¹ÓÃÎÄ×Ö»òͼÏó˵Ã÷ÆäÖеÄÇø±ð¡£
´ð£ºstring str = null ÊDz»¸øËû·ÖÅäÄÚ´æ¿Õ¼ä,¶østring str = "" ¸øËü·ÖÅ䳤¶ÈΪ¿Õ×Ö·û´®µÄÄÚ´æ¿Õ¼ä¡£
25.ÇëÏêÊöÔÚdotnetÖÐÀà(class)Óë½á¹¹(struct)µÄÒìͬ£¿
´ð£ºclass¿ÉÒÔ±»ÊµÀý»¯,ÊôÓÚÒýÓÃÀàÐÍ,ÊÇ·ÖÅäÔÚÄÚ´æµÄ¶ÑÉϵÄ,structÊôÓÚÖµÀàÐÍ,ÊÇ·ÖÅäÔÚÄÚ´æµÄÕ»ÉϵÄ.
26.¸ù¾ÝίÍÐ(delegate)µÄ֪ʶ£¬ÇëÍê³ÉÒÔÏÂÓû§¿Ø¼þÖдúÂëƬ¶ÎµÄÌîд£º
namespace test
{
public delegate void ondboperate();
public class usercontrolbase : system.windows.forms.usercontrol
{
public event ondboperate onnew;
privatevoidtoolbar_butt(objectsender,system.windows.forms.toolbarbutteventargs e)
{
if(e.button.equals(btnnew))
{
//ÇëÔÚÒÔϲ¹Æë´úÂëÓÃÀ´µ÷ÓÃondboperateίÍÐÇ©ÃûµÄonnewʼþ¡£
}
}
}
´ð£ºif( onnew != null ) &nbs
Ïà¹ØÎĵµ£º
Ò³Ãæʼþ˳ÐòÊǹ̶¨µÄ£¬µ«Ò³ÃæÉϵĿؼþʼþÔòÒÀÀµ¾ßÌåÒ³ÃæºÍÓû§µÄ²Ù×÷¡£Èç¹û¿Ø¼þµÄAutoPostBackÊôÐÔÉèÖÃΪtrue£¨Ä¬ÈÏֵΪfalse£©£¬ÄÇô½«Á¢¿ÌÒýÆðÒ³Ãæ»Ø·¢£¬¼´Ò³ÃæÖи÷¸ö¿Ø¼þµÄÖµ»Ø´«µ½Web·þÎñÆ÷ÉÏ£¬Òý·¢ÏàӦʼþ£¬ÓÉʼþµÄ´¦Àí³ÌÐò´¦Àí¡£´¦ÀíÍê³ÉºóÈç¹ûûÓÐÌøתָÁ¸ÃÒ³Ãæ ......
¡ï1. ʹÓÃQueryString±äÁ¿
¡¡¡¡¡¡QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´«µÝÊý×é»ò¶ÔÏóµÄ»°£¬¾Í²»ÄÜÓÃÕâ¸ö·½·¨ÁË¡£ÏÂÃæÊÇÒ»¸öÀý×Ó£º
a.aspxµÄC#´úÂë
private vo ......
1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(" <script>window.alrt('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡') </script>"); Response.Write(" <script>window.loation='http://www.cnblogs.com/kevin1031" target="_blank">http://www.cnblogs.com/kevin1031' </script>");
2.//µ¯³ö¶Ô»°¿ ......
asp,asp.net,php,jspϵÄ301תÏò´úÂë
ʹÓÃ.htaccessÎļþÀ´½øÐÐ301Öض¨Ïò¡£
Èç¹û¿Õ¼ä²»Ö§³Ö.htaccessÎļþ£¬ÄÇôÎÒÃÇ»¹¿ÉÒÔͨ¹ýphp/asp´úÂëÀ´½øÐÐ301Öض¨Ïò¡£
ΪÁ˽«ËÑË÷ÒýÇæµÄ¼Ç¼¸üе½ÏÖÔÚµÄÓòÃûÉÏÃæ,×öÁ˼¸¸ö301Öض¨ÏòµÄ¶«¶«,¸ø´ó¼Ò·ÖÏíÒ»ÏÂ.
asp 301תÏò´úÂë
ÔÚ index.asp »ò default.asp µÄ×²¿¼ÓÈëÒÔ ......
Asp.netÈÕÆÚ×Ö·û´®¸ñʽ»¯ÏÔʾ--DateTime.ToString()Ó÷¨Ïê½â
ÎÒÃǾ³£»áÓöµ½¶Ôʱ¼ä½øÐÐת»»,´ïµ½²»Í¬µÄÏÔʾЧ¹û£¬Ä¬ÈϸñʽΪ:2006-6-6 14:33:34
Èç¹ûÒª»»³É³É200606,06-2006,2006-6-6»ò¸ü¶àµÄ¸ñʽ¸ÃÔõô°ìÄØ£¿
ÕâÀォҪÓõ½:DateTime.ToStringµÄ·½·¨(String, IFormatProvider)
ʾÀý£º
using System;
using Syste ......