Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.NETÒ³Ãæ½âÎö(3)

ʼþÄ£ÐÍ
µ±Ä³¸öÒ³Ãæ±»ÇëÇóʱ£¬ËüµÄÀ༰ÆäËù°üº¬µÄ·þÎñÆ÷¿Ø¼þ»á¸ºÔð´¦ÀíÇëÇ󣬳ÊÏÖHTMLÊä³ö£¬²¢Ëæºó·¢»Ø¿Í»§¶Ë¡£ÓÉÓÚHTTPЭÒéµÄ¹ÌÓÐÌØÐÔ£¬¿Í»§¶ËÓë·þÎñÆ÷¼äµÄͨÐÅÊÇÎÞ״̬ÇÒ·ÇÁ¬½ÓµÄ¡£¶øʵ¼ÊµÄÓ¦ÓóÌÐòÐèҪ״̬£¬ÒÔ±ãά»¤¶ÔͬһҳÃæµÄºóÐøµ÷Óá£Ê¹ÓÃASP»òÆäËû·þÎñÆ÷¶Ë¿ª·¢Æ½Ì¨(ÈçJava Server PageºÍLAMPÒ»ÀàµÄ»ùÓÚLinuxµÄϵͳ)£¬¿ª·¢Õß±ØÐ븺Ôð״̬µÄ´æ´¢¡£¶øASP.NETÌṩÁËÒ»ÖÖÄÚ½¨¼Ü¹¹£¬Äܹ»ÒÔ͸Ã÷µÄ·½Ê½¶ÔÒ³ÃæµÄ״̬½øÐд洢ºÍ»Ö¸´¡£¾¡¹Ü»ùÓÚÎÞ״̬µÄЭÒ飬µ«ÒÔÕâÖÖ·½Ê½£¬´Ó¿Í»§¶ËÌåÑéµ½µÄÊÇÁ¬ÐøµÄÖ´Ðйý³Ì¡£È»¶ø£¬ÄÇÖ»ÊÇÒ»ÖÖ±íÏó¡£
ÊÓͼ״̬¼ò½é
Á¬ÐøÐÔËùµ¼ÖµÄÕâÖÖ±íÏó£¬Ò»·½ÃæÓëÒ³ÃæµÄÉè¼ÆºÍ¹¤×÷·½Ê½Óйأ¬ÁíÒ»·½ÃæÊÇASP.NETÒ³ÃæÊÓͼ״̬Ôì³ÉµÄ¡£Óë´Ëͬʱ£¬·þÎñÆ÷¶Ë¿Ø¼þÒ²·¢»Ó×ÅÖØÒª×÷Ó᣼ò¶øÑÔÖ®£¬ÔÚÒ³Ã潫ÆäÄÚÈݳÊÏÖΪHTML֮ǰ£¬Ò³ÃæÒª½«×ÔÉí¼°ÆäËù°üº¬µÄ¿Ø¼þµÄ״̬ÐÅÏ¢´æ´¢ÔÚ³Ö¾ÃÐÔ½éÖÊ(Ò»°ãΪÒþº¬×Ö¶Î)ÖС£µ±¸ÃÒ³Ãæ»Ø·¢ºó£¬Æä״̬»á´ÓÒþº¬×Ö¶ÎÖб»·´ÐòÁл¯£¬ÓÃÓÚ¶ÔÉùÃ÷ÔÚÒ³Ãæ²¼¾ÖÖеķþÎñÆ÷¿Ø¼þʵÀý½øÐгõʼ»¯¡£ ÿ¸öÒ³ÃæʵÀýÓÐÆäÌØÓеÄÊÓͼ״̬£¬ÒòΪ¸ÃÐÅϢǶÈëÔÚHTMLÖС£ÕâÑù×öµÄºÃ´¦ÊÇ£¬¿Ø¼þ»áÒÔÉÏÒ»´Î´´½¨µÄÊÓͼ״̬(¼´¸ÃÒ³×îºóÒ»´Î±»³ÊÏÖ·¢Ë͵½¿Í»§¶ËʱµÄ״̬)µÄÖµ½øÐгõʼ»¯¡£´ËÍ⣬ҳÃæÖÜÆÚÖл¹»áÓÐÒ»¸ö½×¶Î£¬½«ÒÑ´æ´¢µÄ״̬ÓëÓÉ¿Í»§¶Ë×ö³öµÄ¸üкϲ¢¡£Ôڻط¢ºó£¬Ò³ÃæÖ´ÐÐʱ£¬Ëü»á·¢ÏÖÒ»¸öÓÐ״̬µÄÇÒ¸üйýµÄÉÏÏÂÎÄ£¬¾ÍÏñ¹¤×÷ÔÚÁ¬ÐøµÄµã¶ÔµãÁ¬½ÓÉÏÒ»Ñù¡£ ÕâÀï×öÁËÁ½¸ö¼ÙÉè¡£µÚÒ»¸ö¼ÙÉèÊÇ£¬Ò³Ãæ×ÜÊÇͶµÝ¸ø×ÔÉí£¬²¢Ð¯´ø×Å״̬ÐÅÏ¢¡£µÚ¶þ¸ö¼ÙÉèÊÇ£¬·þÎñÆ÷¶Ë¿Ø¼þ±ØÐë´øÓÐrunat=serverÊôÐÔ£¬ÒÔ±ãÔÚÒ³Ãæ»Ø·¢ºó¾ßÓГÉúÃüÁ¦”¡£
µ¥´°ÌåÄ£ÐÍ
²»¿É·ñÈÏ£¬¶ÔÓÚ¾ßÓÐASP»òJSP¾­ÑéµÄ³ÌÐòÔ±À´Ëµ£¬¿ªÊ¼¿ÉÄܲ»Ì«ÊÊÓ¦ASP.NETµÄµ¥´°ÌåÄ£ÐÍ¡£ÕâЩ³ÌÐòÔ±ÔÚÂÛ̳ºÍÐÂÎÅ×é¾­³£»áÎÊÕâÑùµÄÎÊÌ⣺“´°ÌåµÄActionÊôÐÔÔÚÄÄÀ”ÒÔ¼°“ΪʲôÎÒÌá½»´°Ìåʱ£¬²»ÄÜÖض¨Ïòµ½Ò»¸öÌض¨Ò³Ã棿” ASP.NETÒ³ÃæÖ»Ö§³ÖÒ»¸ö·þÎñÆ÷¶Ë<form>(´°Ìå)±êÇ©¡£ËùÓÐÒªÓë·þÎñÆ÷½»»¥µÄ¿Ø¼þ£¬±ØÐëÈ«²¿ÖÃÓÚÔڸô°ÌåÖС£´°ÌåºÍ¿Ø¼þ¶¼±ØÐë´øÓÐrunatÊôÐÔ£¬·ñÔò»á±»ÊÓΪ´¿Îı¾£¬²¢±»Öð×ÖÊä³ö¡£ÔÚ·þÎñÆ÷¶Ë£¬´°ÌåÊÇHtmlFormÀàµÄʵÀý¡£HtmlFormÀàûÓб©Â¶ÈκÎÏ൱ÓÚHTML <form>±êÇ©µÄActionµÄÊôÐÔ¡£ÆäÔ­ÒòÔÚÓÚ£¬ASP.NETÒ³Ãæ×ÜÊÇͶµÝ¸ø×Ô¼º¡£³ýActionÊôÐÔÍ⣬´°ÌåÆäËû³£ÓÃÊôÐÔ(ÈçMethodºÍTarget)»¹ÊÇÍêÈ«Ö§³ÖµÄ¡£ ²»°üº¬·þÎñÆ÷¶Ë´°ÌåµÄ£¬ÒÔ¼°Ê¹ÓÃH


Ïà¹ØÎĵµ£º

Asp.Net´óÐÍÏîĿʵ¼ù ¹Ø¼ü¼¼Êõ·½°¸Ñ¡ÔñÀíÓɼ°Ë¼Â·

ËäÈ»ÎÒ²»Ï²»¶ÌÖÂÛÌ«¶àÀíÂÛ¸ÅÄîÉϵĶ«Î÷£¬µ«¸÷λ“ש¼Ò”»¹ÊÇÌá³öÁ˺ܶà·Ç³£ÓÐÕë¶ÔÐÔµÄÒâ¼û£¬Íû´ËÌû²»Òª³ÉΪ¿Úˮս²ÅºÃ....ÏÖ´ðÒÉÈçÏ£¨Óкܶà¸öÈËÀí½â£¬²»Ò»¶¨ÕýÈ·£©£º
ש¼ÒÒâ¼ûÇë²Î¼û£ºAsp.Net´óÐÍÏîĿʵ¼ùϵÁе¼º½
ΪʲôѡÔñNHibernate
ÀíÓÉ1£º¶ÔÏó¹ØϵӳÉä¼¼Êõ£¨ORM£©µÄ×îÖ÷ҪĿµÄÊÇΪÁ˽â¾ö¹ØϵÐÍÊý¾Ý¿âÓ ......

asp.netѧϰ²½Öè


µÚÒ»²½¡¡ÕÆÎÕÒ»ÃÅ¡£NETÃæÏò¶ÔÏóÓïÑÔ£¬C#»òVB.NET ÎÒÇ¿ÁÒ·´¶ÔÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏó£¨OO£©ÓïÑÔµÄÇ°ÌáÏÂȥѧASP.NET¡£ ASP.NETÊÇÒ»¸öÈ«ÃæÏò¶ÔÏóµÄ¼¼Êõ£¬²»¶®OO£¬ÄǾø¶Ôѧ²»ÏÂÈ¥£¡
µÚ¶þ²½¡¡¶Ô¡£NET FrameworkÀà¿âÓÐÒ»¶¨µÄÁ˽⠿ÉÒÔͨ¹ý¿ª·¢Windows FormÓ¦ÓóÌÐòÀ´Ñ§Ï°¡£NET Framework¡£ASP.NETÊǽ¨¹¹ÔÚ¡£NET FrameworkÖ® ......

ASP.NETÃæÊÔÌâ(Ò»)

SP.NETÃæÊÔÌâ
£¨×ª Ô­ÎĵØÖ·http://blog.sina.com.cn/s/blog_524c848901009e7b.html~type=v5_one&label=rela_nextarticle ×÷Õß
ÀîÑóµÄ²©¿Í
http://blog.sina.com.cn/liiyang£©
1. ¼òÊö private¡¢ protected¡¢ public¡¢ internal ÐÞÊηûµÄ·ÃÎÊȨÏÞ¡£
´ð . private : ˽ÓгÉÔ±, ÔÚÀàµÄÄÚ²¿²Å¿ÉÒÔ·ÃÎÊ¡£
prote ......

ASP.NET²¥·ÅÊÓƵÎļþ

///C#ÖеÄýÌå²¥·ÅÀà
using System;
namespace ConfigTools
{
/// <summary>
/// PlayClass µÄժҪ˵Ã÷¡£
///Ô­×÷CSDN,¾­±¾ÈËÉÔ¼ÓÐÞ¸Ä
/// </summary>
public class PlayClass
{
public PlayClass()
{
......

asp.net³¬Á´½Ó´«ÖµÎÊÌâ

×î½ü¿ª·¢ÖÐÔÚÒ³ÃæÖ®¼ä´«µÝÖµµÄ¹ý³ÌÖУ¬¶à´¦Ó¦ÓÃÁ˳¬Á´½Ó´«ÖµµÄ·½Ê½¡£µ«Êǵ±´«µÝµÄ²ÎÊýÖк¬ÓÐÖÐÎÄ×Ö·ûʱ£¬ÔÚµ÷ÓÃRequest.QueryString[]·½·¨½ÓÊÕ²ÎÊýʱ£¬×ÜÊdzöÏÖ´íÎ󣬶øÇÒ´íÎóµÄ³öÏÖ×ÜÊÇËæ»úµÄ¡£±íÏÖΪ½ÓÊÕµÄÖÐÎIJÎÊý²»È«£¬ºó¼ÓͨÅä·û“£¿”£¬»òÕß°ÑÖÐÎIJÎÊýºóµÄÄǸö²ÎÊýºÍÖÐÎIJÎÊý»ìÔÚÒ»Æ𣬲»¼ÓÇø·Ö¡£
 & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ