»ùÓÚ.netµÄÐÂÎÅ·¢²¼¹ÜÀíϵͳÉè¼Æ ÕªÒª ASP.NETÊÇÐÂÒ»´úWebÓ¦ÓóÌÐò¿ª·¢Æ½Ì¨£¬ËüÊÇÒ»¸öÒѱàÒëµÄ¡¢»ùÓÚ.NETµÄ¿ª·¢»·¾³£¬ËüÌṩÁËÉú³ÉÆóÒµ¼¶Ó¦ÓóÌÐòËù±ØÐèµÄÈ«²¿·þÎñ£¬»ùÓÚ .NET Framework Éú³É£¬Õû¸ö¿ò¼Ü¶¼¿ÉÓÃÓÚÈκΠASP.NET Ó¦ÓóÌÐò¡£¿ÉÒÔʹÓÃÈκÎÓ빫¹²ÓïÑÔÔËÐпâ(CLR)¼æÈݵÄÓïÑÔ(°üÀ¨ Visual Basic.NET¡¢C# ºÍ JScript .NET)À´´´½¨Ó¦ÓóÌÐò¡£ÎÒÃǵÄÕâ¸ö¿ÎÌâÕýÊÇÓ¦ÓÃASP.NETºÍSQL SERVER2000µÈÓ¦ÓÃÈí¼þÀ´ÖÆ×÷£¬²¢»ùÓÚWebÀ´ÊµÏֵġ£¸ÃϵͳʹÓÃASP.NET(C#ÓïÑÔ)ºÍADO.NET¼¼Êõ¿ª·¢, ʵÏÖÁËÍøÕ¾ÐÂÎŵĶ¯Ì¬¹ÜÀí£¬Ê¹µÃ¶ÔÐÅÏ¢µÄ¹ÜÀí¸ü¼Ó¼°Ê±¡¢¸ßЧ£¬Ìá¸ßÁ˹¤×÷ЧÂÊ£¬¾ßÓÐÒ»°ãÐÂÎÅϵͳµÄ¹¦ÄÜ£¬Ö÷Òª°üÀ¨Ç°Ì¨ÐÂÎŲ鿴ÇøºÍºǫ́¹ÜÀíÇø£¬¿ÉΪѧУ¸÷²¿ÃÅ·¢²¼ÐÂÎÅ£¬ÎªÐ£Ô°ÍøÕ¾ÌṩÐÂÎÅ·¢²¼Óë¹ÜÀíµÄ·þÎñ¡£ ¹Ø¼ü´Ê ASP.NET ADO.NET ÐÂÎŹÜÀí Browser/Server Based on the.Net news issuing and management system design (Dept. of Computer and Information Science, Southwest Forestry College, Kunming, Yunnan, 650224, China) Abstract ASP.NET is a new generation of Web application development platform, it is a compiled, based on the NET development environment, it provides generation of enterprise level application all essential services, based on the . NET Framework generation, the framework can be used in any ASP.NET application. You can use any of the common language runtime ( CLR ) compatible languages ( including Visual Basic.NET, C # and JScript . NET ) to create the application. Our task is to use ASP.NET and SQL SERVER2000 and other software to production, and based on Web to achieve. The system uses ASP.NET ( C # language ) and ADO.NET technology development, achieve the dynamic management of the news web site, making the management of information more timely, efficient, improve the work efficiency, has general news function of system, mainly including front and background information see the district management area, schools and departments for news, for the campus news website management services.
Keywords ASP.NET ADO.NET NewsManagement Browser/Server Ŀ ¼
Ŀ ¼ 3
ÒýÑÔ 1
1Ñо¿±³¾° 2 1.1 ¹úÄÚÍâÑо¿ÏÖ×´¼°·¢Õ¹Ç÷ÊÆ[5] 2 1.2 Ñо¿Ä¿µÄ¡¢ÒâÒåºÍ·¶Î§ 2
2 ¿ÎÌâ·ÖÎö 3 2.1 ÐèÇó·ÖÎö 3 2.2 ÐÂÎÅϵͳµÄÐÔÄÜÐèÇó 5 2.3 ÔËÐл·¾³ÒªÇó[3][9] 5 2.3.1É豸 5 2.3.2Ö§³Ö³ÌÐò 5
3 ϵͳ½á¹¹Á÷³Ì 6 3.1 ÐÂÎÅϵͳµÄÄ£Ðͽṹ 6 3.2 ÐÂÎÅϵͳµÄ¹¦ÄÜÄ£¿é¼ò½é 6
4 ʹÓü¼ÊõµÄ½éÉÜ 8 4.1 .NET FRAMEWORK¸ÅÊö[9][11] 8 4.2 ASP.NET¡¢ADO.NETºÍC#ÓïÑÔ¼ò½é[5][13] 9
5 ÐÂÎÅϵͳµÄÖ÷Òª¿ª·¢¹ý³Ì 11 5.1 Êý¾Ý¿âÉè¼Æ 11 5.2¸÷Ö÷Òª´°ÌåÒ³µÄͼÐνçÃæ½éÉÜ 12 5.3 Ò³ÃæµÄ·ç¸ñÉè¼Æ 16 5.4 ϵͳÅäÖà 17 5.4.1 Web.configÎļþÅäÖà 17 5.4.2 ÅäÖ÷¢²¼Ö÷Ò³ 17 5.5 ϵͳ²¿·ÖÖØÒª¹¦Äܼ°Æä´úÂë 18 5.5.1 WebÓû§¿Ø¼þ 18 5.5.2 ͨÓÃÀà´úÂë 18 5.5.3 Ìí¼Ó·¢²¼ÐÂÎÅ 20 5.5.4 Óû§×¢²á 20
½áÊøÓï 22
²Î¿¼ÎÄÏ× 23
ÖÂл 24
¸½£º 24 ÒýÑÔ ASP.NETÊÇ΢Èí¹«Ë¾×îÐÂÍƳöµÄÒ»ÖÖͳһWeb¿ª·¢Æ½Ì¨£¬Óë×îеÄÊý¾Ý·ÃÎʼ¼ÊõADO.NETÒ»Æð¿É¹¹½¨³öÇ¿´ó¡¢°²È«ºÍ¿É¿¿µÄÆóÒµ¼¶WebÓ¦ÓóÌÐò¡£ASP.NETµÄÓï·¨Ôںܴó³Ì¶ÈÉÏÓëASP¼æÈÝ£¬Í¬Ê±Ëü»¹ÌṩһÖÖеıà³ÌÄ£Ðͺͽṹ£¬ÓÃÓÚÉú³É¸ü°²È«¡¢¿ÉÉìËõºÍÎȶ¨µÄÓ¦ÓóÌÐò¡£ ²ÉÈ¡ÁËASP.NET¼¼ÊõµÄϵͳÔÚÐÔÄÜÉÏÓÐÁ˺ܴóµÄ¸ÄÉÆ£¬Ö÷Òª±íÏÖÔÚÒÔϼ¸·½Ã棺
2.1 ÐèÇó·ÖÎö ¸ÃϵͳµÄÓû§ÎªÐ£Ô°ÍøÕ¾£¬ÐèÒª¾³£·¢²¼Ò»Ð©ÐÂÎÅ£¬ÈçºÎÄÜÓÐЧµØ¹ÜÀíºÍ·¢²¼ÐÂÎÅÄØ£¿×î³õÓû§µÄÐèÇóΪ£º¡°¸ÃÐÂÎÅϵͳ¾ßÓÐÒ»°ãÐÂÎÅϵͳµÄ¹¦ÄÜ£¬Í¬Ê±¾ßÓÐÐÂÎÅÉóºËºÍ²»Í¬¹ÜÀíÔ±²»Í¬¹ÜÀíȨÏ޵ŦÄÜ¡± ¡£ ͨ¹ý¶ÔÆäËüһЩÐÂÎÅϵͳµÄµ÷²é·¢ÏÖ£¬Ò»°ãÐÂÎÅϵͳ¹¦ÄÜÈçÏ£º ¡ô ǰ̨°´·ÖÀàÏÔʾÐÂÎÅ£» ¡ô ËÑË÷ÐÂÎÅ£» ¡ô ºǫ́¹ÜÀí£º ¡ñ Ìí¼Ó¡¢É¾³ýºÍÐÞ¸ÄÐÂÎÅ ¡ñ Ìí¼Ó¡¢É¾³ýºÍÐÞ¸ÄÓû§ ¡ñ Ìí¼Ó¡¢É¾³ýºÍÐÞ¸ÄÐÂÎÅ·ÖÀà ¡ñ Ìí¼ÓÐÂÎÅ£¨Ìí¼Ó³É¹¦ºóµÄÐÂΟù¾Ý¹ÜÀíԱȨÏÞ·ÖΪ¿É·¢²¼ÐÂÎźʹýÉóºËÐÂÎÅ£© ÐèÒªÐÂÎÅÉóºË£¬ËµÃ÷Ìí¼ÓºóµÄÐÂÎÅ·ÖΪÁ½ÖÖ£ºÖ±½Ó·¢²¼ÐÂÎźʹýÉóºËÐÂÎÅ£¬Í¬Ê±´ýÉóºËµÄÐÂÎÅͨ¹ý¹ÜÀíÔ±»òÉóºËÔ±¾ÉóºËºó²Å¿ÉÒÔÉÏ´«µ½ÍøÕ¾£¬¹ÜÀíÔ±Óв»Í¬µÄȨÏÞ£¬ÐèÒªÓиö¹ÜÀíȨÏ޵ŦÄÜ£¬ÔÚϵͳÖÐÓ¦¸ÃÓиö³¬¼¶¹ÜÀíÔ±£¬¾ßÓÐËùÓÐȨÏÞ£¬Äܹ»¶Ôϵͳ½øÐÐÈ«Ãæ¹ÜÀí£¬Í¬Ê±¹ÜÀíÔ±¿ÉÒÔÐÞ¸Ä×Ô¼ºµÄһЩÐÅÏ¢¡£ ¸ù¾ÝУ԰ÍøÕ¾ÐÂÎÅ·¢²¼¹ÜÀíµÄʵ¼ÊÐèÇó£¬ÔÚÊ×Ò³ÖÐÄÜÏÔʾ×îÈÈÃÅÐÂÎÅ¡¢Í·ÌõÐÂÎźÍ×î½ü·¢²¼µÄ¼¸ÌõÐÂÎŵȣ¬Í¬Ê±ÔÚºǫ́·¢²¼ÐÂÎÅʱ¿ÉÒÔÌí¼ÓͼƬ£¬Ò²¿ÉÒÔÌí¼ÓHTMLÓï·¨£¬ÔÚǰ̨ÄÜ×Ô¶¯¸ù¾ÝËùÏÔʾµÄͼƬºÍHTMLÓï·¨À´ÏÔʾÐÂÎÅ¡£ ÔÚºǫ́¹ÜÀíÖУ¬ÒòΪÓÐȨÏ޵ĹÜÀíÔ±²ÅÄܵǼ¹ÜÀíºǫ́£¬ËùÒÔÐèÒªÓиöµÇ¼Ñé֤ģ¿é£¬¶øÇÒÐèÒª¸ù¾ÝÓû§È¨Ï޵IJ»Í¬ÏÔʾ²»Í¬µÄ¹ÜÀíĿ¼£¬ÔÚ¹ÜÀíÐÂÎźÍÓû§Ê±£¬µ±Êý¾ÝÉÙʱ¹ÜÀíÆðÀ´»¹±È½Ï·½±ã£¬Èç¹ûÒ»¶àÔòÏëÕÒµ½Ä³ÌõÐÂÎÅ»òij¸öÓû§¾ÍºÜÄÑ£¬ËùÒÔÐèÒªÓиö²éÕÒ£¨ÐÂÎűêÌâ¡¢Óû§£©Ä£¿éÓÃÓÚ²éÕÒÐÂÎÅ»òÓû§¡£ ¸ù¾ÝÒÔÉÏÐèÇó·ÖÎö£¬¸ÃϵͳҪʵÏÖµÄÖ÷Òª¹¦ÄÜΪ£º ¡ô ǰ̨ÏÔʾÐÂÎŲ¿·Ö ¡ñ Óû§µÇ¼Çø ¡ñ ÏÔʾ×îÈÈÃŵÄÇ°¼¸ÌõÐÂÎÅ ¡ñ ÏÔʾÍƼöµÄÇ°¼¸ÌõÐÂÎÅ ¡ñ ÏÔʾ×îеÄÇ°¼¸ÌõÐÂÎÅ ¡ñ ËÑË÷ÐÂÎŹ¦ÄÜ ¡ñ ÏÔʾËùÓÐÐÂÎÅ·ÖÀࣨ¼´²¿ÃÅ£© ¡ñ °´·ÖÀà/²¿ÃÅÏÔʾÆäϵÄËùÓÐÐÂÎÅ ¡ñ ÐÂÎÅÏêϸÐÅÏ¢ä¯ÀÀÔĶÁ ¡ñ ͼƬÐÂÎÅ£¨×Ô¶¯Éú³ÉËõÂÔͼ£©ÒÔ¹ö¶¯ÐÎʽÔÚÊ×Ò³ÏÔʾÇÒÖ»ÏÔʾǰ¼¸Ìõ ¡ñ ÍøÕ¾ÓÑÇéÁ´½Ó£¨¿ÉÔÚ¹ÜÀíÖÐÌí¼ÓÉèÖã© ¡ñ ÍøÕ¾¹«¸æ¿ÉÏÔʾ·¢²¼ÁËÐÂÎŵ«Ã»Í¨¹ýÉóºËµÄһЩÏà¹Ø֪ͨµÈ ¡ô ºǫ́¹ÜÀí²¿·Ö ¡ñ µÇ¼ÑéÖ¤ ¡ñ ¸ù¾ÝȨÏÞÏÔʾÏàÓ¦µÄ¹ÜÀíĿ¼ ¡ñ Ìí¼Ó¡¢Ð޸ĺÍɾ³ýÐÂÎÅ ¡ñ ¹ÜÀí·¢²¼ÐÂÎÅ ¡ñ ¹ÜÀíÉóºËÐÂÎÅ ¡ñ ·ÖÀà¹ÜÀí ¡ñ Óû§¹ÜÀí ¡ñ ÍøÕ¾·ç¸ñÉèÖá¢ÏµÍ³ÉèÖõÈ
|