Asp.net ²Ù×÷webclientÉÏ´«ÎļþÎÞ·¨ÉÏ´«µÄ½â¾ö·½°¸
ÒòΪÏîÄ¿ÖÐҪʹÓÃajaxÉÏ´«Í¼Æ¬Îļþ£¬ÓÖÎÞ·¨ÕÒµ½ºÏÊʵÄjquery²å¼þ£¬Ö»ÓÐ×Ô¼º¶¯ÊÖдһ¸ö¡£Ë¼Â·ÈçÏ£º
1.ÓÃjsÈ¡µÃÎļþµÄÍêȫ·¾¶
2.ajax´«µ½ºǫ́
3.ʹÓÃwebclientµÄuploadfileÉÏ´«Îļþ¡£
Ò»ÇÐÊÓºõûÓÐÎÊÌâÁË£¬µ«ÊÇʵ¼Ê¿ª·¢ÖУ¬±¾»ú²âÊÔûÓÐÈκÎÎÊÌ⣬µ«ÊDz¿ÊðºóÈ´×ÜÊÇÕÒ²»µ½ÉÏ´«µÄÎļþ£¬µ÷ÊÔ´úÂëºó·¢ÏÖÎÞ·¨·ÃÎÊ¿Í»§¶Ë·¾¶µÄÎļþ£¬ÎÞÂÛÊǸü¸ÄiisȨÏÞ»¹ÊÇÎļþ¼ÐȨÏÞ¶¼ÎÞ·¨¸Ä±ä´íÎó£¬×îºóͻȻ·¢ÏÖÎҵķ¾¶ÖÐÓÐÖÐÎĺͿոñ£¬ÊDz»ÊÇÕâ¸öÎÊÌâÄØ£¬ÓÚÊÇÕÒÁËÒ»¸ö²»´øÖÐÎĺͿոñµÄÎļþ£¬ÉÏ´«³É¹¦£¡ÓÖÕÒÁ˼¸¸ö²»ÔÚϵͳ°²×°Å̵ÄĿ¼ÏÂÕÒÁ˼¸¸öÎļþÉÏ´«£¬Ò²ÄÜÉÏ´«³É¹¦£¬ËùÒÔ²»ÊÇ¿Õ¸ñºÍÖÐÎĵÄÔÒò£¬¶øÊDz»ÄÜÉÏ´«ÏµÍ³°²×°Å̵ÄÎļþ¡£
ʹÓÃwebclientÉÏ´«Îļþ±¾µØ·¾¶Ò»¶¨²»ÄÜÉÏ´«ÏµÍ³°²×°Å̵ÄÎļþ£¡
Ïà¹ØÎĵµ£º
Ö±½Ó»ñµÃÒ³Ãæ²ÎÊý£º
if(!IsPostBack) { //ÅжÏÊÇ·ñÊǵÚÒ»´Î¼ÓÔØ´°Ìå
}
if(Page.PreviousPage!=null){ // ÅжÏÉÏÒ»Ò³ÃæµÄ°´Å¥ÊÇ· ......
ÔÚ ASP.NET ÍøÒ³Öв»¾¹ý»Ø·¢¶øʵÏÖ¿Í»§¶Ë»Øµ÷
ÔÚ ASP.NET ÍøÒ³µÄĬÈÏÄ£ÐÍÖУ¬Óû§»áÓëÒ³½»»¥£¬µ¥»÷°´Å¥»òÖ´Ðе¼Ö»ط¢µÄһЩÆäËû²Ù×÷¡£´Ëʱ½«ÖØд´½¨Ò³¼°Æä¿Ø¼þ£¬²¢ÔÚ·þÎñÆ÷ÉÏÔËÐÐÒ³´úÂ룬ÇÒа汾µÄÒ³±»³ÊÏÖµ½ä¯ÀÀÆ÷¡£µ«ÊÇ£¬ÔÚÓÐЩÇé¿öÏ£¬ÐèÒª´Ó¿Í»§¶ËÔËÐзþÎñÆ÷´úÂ룬¶ø²»Ö´Ðлط¢¡£Èç¹ûÒ³ÖеĿͻ§¶Ë½Å±¾Î¬»¤Ò»Ð©×´Ì¬ ......
ÔÀ´ÓÃjQueryµÄajax·½Ê½µ÷ÓÃasp.netÒ³Ãæ»ù±¾¶¼Êǵ÷Óõ¥¸öÒ³Ã棬Óɵ÷ÓÃÒ³ÃæResponseÄÚÈÝ£¬¶øÏÖÔÚ²ÉÓÃasp.net ajaxºó£¬ÎÒÃÇÔò¿ÉÒÔ¸üÍêÃÀµÄʹÓÃjQueryºÍasp.net½áºÏÁË£¬´úÂëÈçÏ£º
<asp:ScriptManager ID="ScriptManager1" runat="server" >
<Scripts>
<asp:ScriptReference Path="http ......
Asp.Net³ÌÐòµÄ¸ß¼¶¹¦ÄÜ£¬Óкܶ඼ÊÇ»ùÓÚIHttpHandler½Ó¿ÚÀ´ÊµÏֵģ¬ÔÚWinwods Server 2003 Ï£¬ÅäÖÃIIS6µÄ Web·þÎñÀ©Õ¹·Ç³£¼òµ¥¡£×î½üÓÃWin7+IIS7.5µÄÈËÔ½À´Ô½¶à£¬ÔÚÕâ¸ö»·¾³ÏÂÅäÖÃAsp.NetµÄWeb·þÎñÀ©Õ¹¾ÍÓÐЩÂé·³¡£ÒÔÏÂÄÚÈÝ£¬¾ÍÊÇÔÚWin7ºÍIIS7.5»·¾³ÏÂÅäÖùý³Ì¡£
& ......
http://zhanglei1286.blog.163.com/blog/static/1895797120091112113019600/
ÔÚºǫ́´úÂëÀ
SQL 2000:
static string StrConn = "server=.;uid=sa;pwd=sa;database=MyCUDS";
SQL2005:
con = new SqlConnection(@"Server=.\SQLExpress;Database=db_CMS;Persist Security Info=True;User ID=sa;Password=Masslong");
......