asp.netѧϰ²½Öè
µÚÒ»²½¡¡ÕÆÎÕÒ»ÃÅ¡£NETÃæÏò¶ÔÏóÓïÑÔ£¬C#»òVB.NET ÎÒÇ¿ÁÒ·´¶ÔÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏó£¨OO£©ÓïÑÔµÄÇ°ÌáÏÂȥѧASP.NET¡£ ASP.NETÊÇÒ»¸öÈ«ÃæÏò¶ÔÏóµÄ¼¼Êõ£¬²»¶®OO£¬ÄǾø¶Ôѧ²»ÏÂÈ¥£¡
µÚ¶þ²½¡¡¶Ô¡£NET FrameworkÀà¿âÓÐÒ»¶¨µÄÁ˽⠿ÉÒÔͨ¹ý¿ª·¢Windows FormÓ¦ÓóÌÐòÀ´Ñ§Ï°¡£NET Framework¡£ASP.NETÊǽ¨¹¹ÔÚ¡£NET FrameworkÖ®Éϵļ¼Êõ£¬Äã¶Ô¡£NET FrameworkÁ˽âµÃÔ½ÉѧϰASP.NET¾ÍÔ½¿ì¡£ ¾Ù¸öÀý×Ó£ºÏÂÃæ¼òµ¥Áгö¼¸¸ö¶ÔÕÆÎÕASP.NET·Ç³£ÖØÒªµÄ¸ÅÄ¶ÔÏóµÄÄÚ´æÄ£ÐÍ£¬Î¯ÍУ¬Ê¼þ£¬¶àỊ̈߳¬³ÌÐò¼¯ºÍÓ¦ÓóÌÐòÓò£¬°²È«Ä£ÐÍ .NET Frameworkµ±È»»¹ÓÐÐí¶àÆäËüµÄ¶«Î÷£¬µ«²»Àí½âÓë°ÑÎÕÇå³þÉÏÊöÕâЩ¶«Î÷£¬ÊǺÜÄÑÕæÕý°ÑÎÕASP.NETµÄ¡£³öÓÚ¼±ÆȵÄÐÄÇéÓëÏÖʵµÄ¿¼ÂÇ£¬²»ÉÙÈËûÓÐÔúʵµÄÃæÏò¶ÔÏó»ù´¡¾ÍÏëÖ±½ÓѧϰASP.NET£¬Æä½á¹ûÖ»ÄÜÊÇÓûËÙÔò²»´ï¡£Ôھ߱¸ÁËOO»ù´¡Ö®ºó£¬ÒÔÏÂÊǾßÌåµÄѧϰASP.NET¼¼Êõ²½Öè¡£
µÚÒ»²½£ºÑ§Ï°HTMLÓëCSS
Õâ²¢²»ÐèҪȥѧһ´ó¶ÑµÄÖîÈçDreamweaver£¬FireworkÖ®ÀàµÄ¸÷ÖÖÍøÒ³Éè¼Æ¹¤¾ß£¬¹Ø¼üÊÇÀí½âHTMLÍøҳǶÌ×µÄblock½á¹¹ÓëCSSµÄboxÄ£ÐÍ¡£Ðí¶à ASP.NET¿Ø¼þ×îºó¶¼±ØÐëת»¯ÎªHTML¡£¶øÇÒ£¬div+CSSÊǵ±Ç°Ö÷Á÷µÄÍøÒ³²¼¾ÖÄ£ÐÍ¡£Ñ§Ï°Õⲿ·Öʱ£¬¹Ø¼üÔÚÓÚÀí½â¸ÅÄ¶ø²»ÐèÒª½«¾«Á¦»¨ÔÚÃÀ»¯Ò³ÃæµÄÐí¶à¼¼ÇÉÉÏ£¬ÄÇÊÇÍøÕ¾ÃÀ¹¤µÄ¹¤×÷£¬²»ÊdzÌÐòÔ±µÄ¹¤×÷¡£
µÚ¶þ²½£ºÑ§Ï°JavaScript
JavaScript²»ÊÇJava£¬ËüÖ÷ÒªÔËÐÐÓÚä¯ÀÀÆ÷¶Ë¡£¿ÉÒÔÍê³ÉÐí¶à¹¤×÷£¬¹¦ÄÜÒ²ºÜÇ¿´ó£º±ÈÈçËü½«¿Í»§¶ËÍøÒ³ÖеÄHTMLÔªËØ¿´³ÉÒ»¿ÃÊ÷£¬¿ÉÒÔ±àд´úÂë·ÃÎʲ¢ÐÞ¸ÄÊ÷½Úµã£¬¶¯Ì¬Éú³ÉеÄHTML´úÂ룬´Ó¶ø´ïµ½¶¯Ì¬ÐÞ¸ÄÍøÒ³ÏÔʾÌØÐÔµÄÄ¿µÄ¡£
JavaScriptÔÚÄ¿Ç°µÄÍøÕ¾¿ª·¢ÖÐÓõúܶ࣬·Ç³£ÖØÒª¡£
ÁíÍ⣬ËüÒ²ÊÇÄ¿Ç°·Ç³£Á÷ÐеÄAJAX¼¼ÊõµÄ»ù´¡¡£
µÚÈý²½£ºÑ§Ï°¼ÆËã»úÍøÂçÔÀí
ÕÒÒ»±¾´óѧ<¼ÆËã»úÍøÂç>½Ì²Ä£¬Öص㿴¿´ËüµÄÓйػ¥ÁªÍøµÄ²¿·Ö£¬Á˽âһЩÓòÃû½âÎöºÍHTTPÐÒéµÈ֪ʶ¡£ÕâÊǽøÐл¥ÁªÍø¿ª·¢µÄÀíÂÛ»ù´¡¡£
µÚËIJ½£ºÑ§Ï°ASP.NET±íʾ²ã¼¼Êõ£¬»áÉè¼ÆWebÒ³Ãæ
ÐèÒª½áºÏÏÈÇ°´òºÃµÄÃæÏò¶ÔÏó¼¼ÊõµÄ»ù´¡£¬ÖÁÉÙÕÆÎÕÒÔÏÂÄÚÈÝ£º
£¨1£© ¸÷ÖÖWeb¿Ø¼þµÄʹÓ÷½·¨£¬
£¨2£© Àí½âÐÅÏ¢ÔÚÍøÒ³ÖеĴ«ËÍ·½Ê½£¬±ÈÈçCookie£¬ViewState£¬SessionµÈµÄʹÓá£
£¨3£© ASP.NETÓ¦ÓóÌÐòÓëÍøÒ³µÄÉúÃüÖÜÆÚ£¬ÒÔ¼°Ïà¹Ø¶ÔÏ󣨱ÈÈçhttpcontext£¬response£¬request£©µÄÓÃ;¡£
£¨4£© ASP.NETʵÏÖʼþÇý¶¯µÄÄÚÄ»
£¨5£© ×Ô¶¨ÒåÓû§¿Ø¼þ
ÔÙ´ÎÇ¿µ÷һϣ¬Ã»ÓÐOO»ù´¡£¬ºÜÄÑÕÆÎÕÉÏÊö¼¼Êõ£¬¾ÍÖ»Äܱ»ÕâЩ¶«¶«Ç£×űÇ×Ó×ßÁË£¬»áºÜ±»¶¯¡£
µÚÎ
Ïà¹ØÎĵµ£º
FormsÉí·ÝÑéÖ¤ÓÃÀ´ÅжÏÊÇ·ñºÏ·¨Óû§£¬µ±Óû§ºÏ·¨ºó£¬ÔÙͨ¹ýÓû§µÄ½ÇÉ«¾ö¶¨ÄÜ·ÃÎʵÄÒ³Ãæ¡£
Ö÷Ҫ˼Ï룺FormsÉí·ÝÑéÖ¤ÓÃÀ´ÅжÏÊÇ·ñºÏ·¨Óû§£¬µ±Óû§ºÏ·¨ºó£¬ÔÙͨ¹ýÓû§µÄ½ÇÉ«¾ö¶¨ÄÜ·ÃÎʵÄÒ³Ãæ¡£
¾ßÌå²½Ö裺
1¡¢´´½¨Ò»¸öÍøÕ¾£¬½á¹¹ÈçÏ£º
ÍøÕ¾¸ùĿ¼
AdminĿ¼ ----> ¹ÜÀíԱĿ¼
Manager.aspx ----> ¹ÜÀíÔ±¿É ......
×î½üÑо¿ÁËÒ»ÏÂtreeview£¬·¢ÏÖÓÐÁ½ÖÖʵÏÖÎÞÏÞ¼¶Ê÷µÄ·½·¨£¬ÎÄ×Ö²»Ïë¶àд£¬Ö±ÈëÖ÷Ìâ¡£
ÏÈ¿´¿´Ð§¹ûͼ£º
ÏÈ¿´¿´Êý¾Ý¿â±íµÄÉè¼Æ£¬Êý¾Ý±íÖ÷Òª°üÀ¨ID£¬Name£¬ParentIDÕâÈýÏÆäÖÐIDÊÇÖ÷¼ü£¬ParentID¶ÔÓ¦½ÚµãµÄ¸¸½Úµã£º
·½·¨Ò»£ºÓõݹé±éÀúÊý¾Ý£¬²¢½«½ÚµãÖð¸öÌí¼Óµ½treeviewÖÐÈ¥¡£
1.ÏȽøÐÐÊý¾Ý¿âÁ¬½ÓºÍÊý¾ÝµÄ¶ÁÈ¡£¬²¢½«¸ù½Ú ......
¸Õ¸Õ½Ó´¥ÍøÒ³¿ª·¢£¬²»¹ýÓöµ½URR²ÎÊý´«µÝ´íÎóµÄÎÊÌ⣬Á½¸öÒ³Ãæ½øÐÐÐÅÏ¢½»»¥Ê±¿ÉÒÔÓÃurl½øÐд«µÝ£¬µ«ÊÇÈç¹û´«µÝÐÅÏ¢µÄ±àÂë¸ñʽ²»ÊÇUTF-8£¨»òÕß²»ÊÇÉèÖõÄĬÈϸñʽ£©URL´«µÝʱ»á³öÏÖÂÒÂë¡£
±ÈÈçÄã´«È뺺×Ö£¬»òÕß´«Èë"§”µÈÆäËû±àÂë¸ñʽµÄ×Ö·û´®ÏµÍ³½âÎöºóµÄurlΪÂÒÂë¡£¾¹ýÔÚÍøÉϵIJéÕÒ¾õµÃÒ»ÏÂÁ½ÖÖ·½Ê½±È½ÏºÃ£º
1 ......
asp.net¿ª·¢µÄÅóÓÑ£¬¾³£Óõõ½web.configÎļþµÄÅäÖã¬ËùÒÔÎÒÃÇÌØÕûÀíÁËÖÐÎÄ˵Ã÷¡£
<?xml version="1.0" standalone="yes"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<!--ÅäÖÃÈ«¾Ö±äÁ¿-->
<appSettings>
<add key="examstr" value="server=.;da ......
.NETÒ»¸öFTP²Ù×÷Àà¡£µ«Õâ¸öÀླ£³ö´í£¬Ê¹ÓÃDISCUZʹÓõÄÀà¾ÍºÃ¶àÁË¡£
ÏÈ¿´Õâ¸ö¼òµ¥µÄ
¸´ÖÆ´úÂë ´úÂëÈçÏÂ:
FTP ftp = new FTP("192.168.1.117", "ahuinan", "123456");
string oldname = this.FileUpload1.PostedFile.FileName;
string newname = dd + h + mm + ss + oldname.Substring(oldname.LastIndexOf(".")); ......