Asp.Net FormsÑé֤ʵÀý
ÔÚAsp.NetÌṩÁËÈýÖÖ³£ÓõÄÑéÖ¤·½Ê½£ºWindows·½Ê½ÊǺÍIIS½áºÏÆðÀ´¿ÉÒÔʵÏÖ»ù±¾¡¢ÕªÒª¡¢¼¯³É WindowsµÈÉí·ÝÑéÖ¤£»Passport·½Ê½ÊÇʹÓÃWindows Live IDµÄÕÊ»§À´½øÐÐͳһÑéÖ¤µÄ£»Forms·½Ê½ÊÇʹÓó£¼ûµÄ±íµ¥À´ÊµÏÖÑéÖ¤¡£
Ò»¡¢ÆÕͨʵÏÖ·½Ê½
ÕâÖÖ·½Ê½ÊÇ×î¼òµ¥µÄ£¬Ö»ÐèÒªÅäÖÃһϾͿÉÒÔÁË¡£
1¡¢Ö´ÐÐaspnet_regsqlÃüÁÁ¢Êý¾Ý¿â
aspnet_regsqlÃüÁîÔÚC:\WINDOWS\Microsoft.NET\Framework\v2.0.50727Ŀ¼Ï£¬°´ÌáʾÔËÐоͿÉÒÔÁË
2¡¢Ð½¨Ò»¸öwebÍøÕ¾
ÔÚWeb.ConfigÖмÓÈëÅäÖãº
<connectionStrings>
<add name="MySqlConnection" connectionString="Data Source=dbserver;Initial Catalog=database;user id=userid;password=****;" />
</connectionStrings>
<system.web>
<authorization>
<deny users="?"/>
</authorization>
<authentication mode="Forms">
<forms loginUrl="login.aspx" name=".ASPXAUTH"/>
</authentication>
<membership defaultProvider="SqlProvider">
<providers>
<clear />
<add connectionStringName="MySqlConnection" applicationName
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔǰµÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕß¶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
ASP.NET
¹«ÓÐÁùÖÖÑéÖ¤¿Ø¼þ£¬·Ö±ðÈçÏ£º
RequiredFieldValidator
£¨±ØÐë×Ö¶ÎÑéÖ¤£© ÓÃÓÚ¼ì²éÊÇ·ñÓÐÊäÈëÖµ
CompareValidator
£¨±È½ÏÑéÖ¤£© °´É趨±È½ÏÁ½¸öÊäÈë
RangeValidator
£¨·¶Î§ÑéÖ¤£© ÊäÈëÊÇ·ñÔÚÖ¸¶¨·¶Î§
RegularExpressionValidator
£¨ÕýÔò±í´ïʽÑéÖ¤£© ÕýÔò±í´ïʽÑéÖ¤¿Ø¼þ
CustomValid ......
1. ¾µÍ·Ç¨áãÓ¦µ±Ó¦ÓÃʵʩ¾µÍ·Öض¨ÏòµÄResponse.Redirect¶ø²»ÊÇServer.Transfer£¬ÓÉÓÚServer.Transfer²»¸Ä±äIE¿Í»§¶ËURL£¬ÄÜÒÔÖÂASP.NET AJAX¿Í»§¶Ë½Å±¾·ÃÎÊ×ÊÔ´µÄʱ·Ö³öÏÖURL´í´¦¡£
¶þ.ÔÚ·þÎñÆ÷¶ËµÇ¼Ç½Å±¾ºÍÑÚ²Ø×Ö¶ÎÓ¦µ±Ê©ÓÃÖÖScriptManager£¬¶ø²»ÊÇPage.ClientScript¶ÔÏó£¬ÓÉÓÚPage.ClientScriptµÄ²½ÖèÊǽ«½Å±¾µÇ¼Ç ......
¿ÉÒÔʹÓà Literal Web ·þÎñÆ÷¿Ø¼þ×÷ÎªÒ³ÃæÉÏÆäËûÄÚÈݵÄÈÝÆ÷¡£
Ò»¡¢·½°¸
Literal ×î³£ÓÃÓÚÏòÒ³ÃæÖж¯Ì¬Ìí¼ÓÄÚÈÝ¡£
¶þ¡¢±³¾°
Literal ¿Ø¼þ±íʾÓÃÓÚÏòÒ³ÃæÌí¼ÓÄÚÈݵöÑ¡ÏîÖ®Ò»¡£¶ÔÓÚ¾²Ì¬ÄÚÈÝ£¬ÎÞÐèʹÓÃÈÝÆ÷£¬¿ÉÒÔ½«±ê¼Ç×÷Ϊ HTML Ö±½ÓÌí¼Óµ½Ò³ÃæÖС£µ«ÊÇ£¬Èç¹ûÒª¶¯Ì¬Ìí¼ÓÄÚÈÝ£¬Ôò±ØÐ뽫ÄÚÈÝÌí¼Óµ½ÈÝÆ ......
ʹÓÃGridview°ó¶¨Êý¾Ý¿âÖеÄͼƬ
×¢£º´ËϵÁмǼÔÚÎÒʵ¼Ê¿ª·¢ÖÐÓöµ½µÄÎÊÌâºÍÊÕ²ØÒ»Ð©¼¼ÇÉÎÄÕ¡£
ÎÒÃǶ¼ÖªµÀ£¬ÔÚGridviewÖв»ÄÜÖ±½ÓÈ¥°ó¶¨Êý¾Ý¿âÖеÄͼƬ£¬ÎÒÃÇ¿ÉÒÔÀûÓÃHttpHandlerºÜÈÝÒ×µÄÍê³ÉÕâ¸öÈÎÎñ£¬ÔÚÕâÀïÎҼǼһÏÂÕâ¸ö¹ý³Ì¡£
1.ÉÏ´«Í¼Æ¬´æ´¢µ½Êý¾Ý¿âÖÐ
ÔÚÊý¾Ý¿âÖд´½¨Ò»¸ö±í£¬Ìí¼ÓÒ»ÏÂ3¸ö×ֶΣº
²½ÖèÒ»£ºÔÚWeb ......