ASP.NET
°Ë¡¢ASP.NET Web ·þÎñÆ÷¿Ø¼þÄ£°å
´ó¶àÊý Web ·þÎñÆ÷¿Ø¼þ¾ßÓÐĬÈϵIJ¼¾ÖºÍÍâ¹Û£¬µ«ÊÇÄú¿ÉÒÔͨ¹ýÉèÖÃÊôÐÔ»òʹÓÃÑùʽÀ´²Ù×ÝËüÃÇ¡£²¿·Ö Web ·þÎñÆ÷¿Ø¼þ»¹ÔÊÐíÄúʹÓÃÄ£°åÀ´×Ô¶¨ÒåÆäÍâ¹Û¡£
Ä£°åÊÇÒ»×é HTML ÔªËغͿؼþ£¬ËüÃǹ¹³É¿Ø¼þÌض¨²¿·ÖµÄ²¼¾Ö¡£ÀýÈ磬ÔÚ DataList Web ·þÎñÆ÷¿Ø¼þÖУ¬Äú¿ÉÒÔʹÓà HTML ÔªËغͿؼþµÄ×éºÏÀ´´´½¨ÁбíÖÐÿÐеIJ¼¾Ö¡£Í¬Ñù£¬GridView Web ·þÎñÆ÷¿Ø¼þ¶ÔÍø¸ñÖеÄÿÐж¼¾ßÓÐÒ»¸öĬÈϵÄÍâ¹Û¡£µ«Äú¿ÉÒÔͨ¹ýΪ¸÷Áж¨Ò岻ͬµÄÄ£°å£¬À´×Ô¶¨ÒåÍø¸ñµÄÍâ¹Û¡£
˵Ã÷£º Ä£°å²»Í¬ÓÚÑùʽ¡£Ä£°å¶¨Òå¿Ø¼þijһ²¿·ÖµÄÄÚÈÝ£¬ÀýÈç DataList ¿Ø¼þÖÐijÐеÄÄÚÈÝ¡£¶øÑùʽָ¶¨ÔªËصÄÍâ¹Û£¬ÀýÈçÑÕÉ«¡¢×ÖÌåµÈ¡£Ñùʽ¿ÉÒÔ×÷ΪÕûÌåÓ¦ÓÃÓڿؼþ£¨ÀýÈ磬ÉèÖà GridView ¿Ø¼þµÄ×ÖÌ壩ºÍÄ£°åÏî¡£
Ä£°åÓÉ HTML ºÍǶÈëµÄ·þÎñÆ÷¿Ø¼þ×é³É¡£µ±¿Ø¼þÔÚ ASP.NET ÍøÒ³ÖÐÔËÐÐʱ£¬¿Ø¼þ»ù´¡½á¹¹³ÊÏÖÄ£°åµÄÄÚÈÝ£¬¶ø²»ÊǿؼþµÄĬÈÏ HTML¡£
1¡¢ÄÄЩ¿Ø¼þÖ§³ÖÄ£°å£¿
²¢·ÇËùÓÐ Web ·þÎñÆ÷¿Ø¼þ¶¼Ö§³ÖÄ£°å¡£ÔÚ´ó¶àÊýÇé¿öÏ£¬¸´ÔӵĿؼþÖ§³ÖÄ£°å¡£ÕâЩ¿Ø¼þ°üÀ¨ GridView ºÍ DataList¡¢Repeater¡¢FormView¡¢DetailsView¡¢Login ¼°ÆäËû¿Ø¼þ¡£
ÿһ¿Ø¼þÖ§³ÖµÄÒ»×éÄ£°åÂÔÓв»Í¬£¬ÕâЩģ°åÖ¸¶¨¿Ø¼þµÄ²»Í¬²¿·ÖµÄ²¼¾Ö£¬ÀýÈç±êÌâ¡¢½Å×¢¡¢ÏîºÍËùÑ¡Ïî¡£Äú¿ÉÒÔΪÉÏÊöÈÎÒ»»òÈ«²¿¶ÔÏóÖ¸¶¨Ä£°å£¬¾ßÌåÇé¿öÈ¡¾öÓÚÄúÒª×Ô¶¨ÒåÄÄÒ»¶ÔÏó¡£ÔÚ GridView ¿Ø¼þÖУ¬Äú¿ÉÒÔΪÁУ¨¶ø·ÇÐУ©Ö¸¶¨Ä£°å¡£
ϱí¸ÅÊöÁËÖ§³ÖÄ£°åµÄ Web ·þÎñÆ÷¿Ø¼þ¡£
¿Ø¼þ
Ä£°å
ChangePassword
· ChangePasswordTemplate
· SuccessTemplate
CompleteWizardStep
· ContentTemplate
· CustomNavigationTemplate
CreateUserWizar
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
¶ÔÓÚasp.net,ĬÈÏÖ»ÔÊÐíÉÏ´«2MÎļþ,Ôö¼ÓÈçÏÂÅäÖÃ,Ò»°ã¿ÉÒÔ×Ô¶¨Òå×î´óÎļþ´óС.
<httpRuntime executionTimeout="300" maxRequestLength="40960" useFullyQualifiedRedirectUrl="false"/>
ÎÒÃÇÔÚÉÏ´«´óÎļþʱ¶¼Óöµ½¹ýÕâÑù»òÄÇÑùµÄÎÊÌâ¡£ÉèÖúܴóµÄmaxRequestLengthÖµ²¢²»ÄÜÍê ......
Èý²ã¼Ü¹¹(3-tier application) ͨ³£ÒâÒåÉϵÄÈý²ã¼Ü¹¹¾ÍÊǽ«Õû¸öÒµÎñÓ¦Óû®·ÖΪ£º±íÏֲ㣨UI£©¡¢ÒµÎñÂß¼²ã£¨BLL£©¡¢Êý¾Ý·ÃÎʲ㣨DAL£©¡£Çø·Ö²ã´ÎµÄÄ¿µÄ¼´ÎªÁË“¸ßÄÚ¾Û£¬µÍñîºÏ”µÄ˼Ïë¡£
1¡¢±íÏֲ㣨UI£©£ºÍ¨Ë×½²¾ÍÊÇÕ¹ÏÖ¸øÓû§µÄ½çÃ棬¼´Óû§ÔÚʹÓÃÒ»¸öϵͳµÄʱºòËûµÄËù¼ûËùµÃ¡£
2¡¢ÒµÎñ ......
Ö±½ÓÔÚASP.netÖÐÉÏ´«´óÎļþµÄ·½·¨£®
·½·¨Ò»£ºÔÚweb.configÖÐÌí¼Ó<httpRuntime maxRequestLength="100000" executionTimeout="45"/>
·½·¨¶þ£ºÐ޸ģɣɣÓÅäÖÃÎļþwindows->system32->inetsrv->metaBase.XML
·½·¨Èý£º
1£® httpHandler or HttpModule
a.ÔÚASP.net½ø³Ì´¦ÀírequestÇëÇó֮ǰ½Ø»ñ ......
Èý¡¢ÈçºÎ£ºÉèÖà ASP.NET Web ·þÎñÆ÷¿Ø¼þÊôÐÔ
ÔÚ ASP.NET ÍøÒ³ÖУ¬¸ù¾ÝËùÐèµÄÊôÐÔ (Property) ÉèÖÿؼþÉùÃ÷µÄÊôÐÔ (Attribute)¡£
ÄúËùÉèÖõÄÈ·ÇÐÊôÐÔÈ¡¾öÓڿؼþºÍÊôÐÔ¡£ÓйØÌض¨¿Ø¼þµÄÊôÐÔµÄÐÅÏ¢£¬ÇëÔÚ“°ïÖú”Ë÷ÒýÖÐËÑË÷¸Ã¿Ø¼þÀàµÄÃû³Æ£¨ÀýÈ磬“Button Àà (System.Web.UI ......