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

ASP.NETÖÐÈçºÎʵÏÖFORMÈÏÖ¤µÇ¼

ÈçºÎÔËÓà Form ±íµ¥ÈÏÖ¤
ASP.NET µÄ°²È«ÈÏÖ¤£¬¹²ÓГWindows”“Form”“Passport”“None”ËÄÖÖÑé֤ģʽ¡£“Windows”Óë“None”ûÓÐÆðµ½±£»¤µÄ×÷Ó㬲»ÍƼöʹÓ㻓Passport”ÎÒÓÖûÓùý£¬°¦……ËùÒÔÎÒÖ»ºÃ½²½²“Form”ÈÏÖ¤ÁË¡£ÎÒ´òËã·ÖÈý²¿·Ö£º
µÚÒ»²¿·Ö —— ÔõÑùʵÏÖfrom ÈÏÖ¤£»
µÚ¶þ²¿·Ö —— Form ÈÏÖ¤µÄʵսÔËÓã»
µÚÈý²¿·Ö —— ʵÏÖµ¥µãµÇ¼£¨Single Sign On£©
µÚÒ»²¿·Ö ÈçºÎÔËÓà Form ±íµ¥ÈÏÖ¤
Ò»¡¢     н¨Ò»¸ö²âÊÔÏîÄ¿
ΪÁ˸üºÃ˵Ã÷£¬ÓбØҪн¨Ò»¸ö²âÊÔÏîÄ¿£¨ÔÝÇÒΪ“FormTest”°É£©£¬°üº¬ÈýÕÅÒ³Ãæ×ãÒÓ£¨Default.aspx¡¢Login.aspx¡¢UserInfo.aspx£©¡£É¶£¿ÓÐÈ˲»»áн¨ÏîÄ¿£¬²»»áÐÂÔöÒ³Ã棿ÄãÎÊÎÒÕ¦°ì£¿ÎÒ¿´Õâô°ìºÃÁË£ºÍϳöÈ¥£¬´ò»ØÔ­½å£¬´ÓÓ׶ù԰ѧÆð……
¶þ¡¢     ÐÞ¸Ä Web.config
1¡¢ Ë«»÷ÏîÄ¿ÖеÄWeb.config£¨²»»áµÄ¡¢ÕÒ²»µ½µÄ´ò PP£©
2¡¢ ÕÒµ½ÏÂÁÐÎÄ×Ö <authentication mode="Windows" /> °ÑËü¸Ä³É£º
<authentication mode="Forms">
<forms loginUrl="Login.aspx" name=".ASPXAUTH"></forms>
</authentication>
3¡¢ ÕÒµ½<authorization> <allow users="*" /></authorization>»»³É
<authorization><deny users="?"></deny></authorization>
ÕâÀïûʲôºÃ˵µÄ£¬Ö»Òª¿½±´¹ýÈ¥¾ÍÐС£Ëä˵Èç´Ë£¬µ«»¹ÊÇÓÐÈË»áŪ´í£¬ÈçÏ£º
<authentication mode="Forms">
    <forms loginUrl="Login.aspx" name=".APSX"></forms>
<deny users="?"></deny>
</authentication>
ÈôÒªÎÊÊÇË­°Ñ <deny users="?"></deny> ·ÅÈë <authentication> Öеģ¬ÎÒ»áºÜÈÙÐҵظæËßÄ㣬ÄÇÊÇ N ÄêÇ°µÄÎÒ£º<authentication> Óë <authorization> ¶¼ÊÇÒÔ auth ×Öĸ¿ªÍ·ÓÖ¶¼ÊÇÒÔ ation ½á⣬ºÎÆäÏàËÆ£»Ó¢Îĵ¥´Ê±³²»ÏÂÀ´µÄÎÒÒÔΪËûÃÇÊÇÒ»»ïµÄ……
Èý¡¢     ±àд .cs ´úÂë——µÇ¼ÓëÍ˳ö
1¡¢ µÇ¼´úÂ룺
a¡¢ Êé±¾ÉϽéÉܵÄ
      private void Btn_Login_Click(object sender, System.EventArgs e)
   


Ïà¹ØÎĵµ£º

ASP.NETÖÐÈçºÎ·À·¶SQL×¢Èëʽ¹¥»÷

1½«sqlÖÐʹÓõÄһЩÌØÊâ·ûºÅ£¬Èç' -- /* ; %µÈÓÃReplace()¹ýÂË£»
2ÏÞÖÆÎı¾¿òÊäÈë×Ö·ûµÄ³¤¶È£»
3¼ì²éÓû§ÊäÈëµÄºÏ·¨ÐÔ£»¿Í»§¶ËÓë·þÎñÆ÷¶Ë¶¼ÒªÖ´ÐУ¬¿ÉÒÔʹÓÃÕýÔò¡£
4ʹÓôø²ÎÊýµÄSQLÓï¾äÐÎʽ¡£ 
ASP.NETÖÐÈçºÎ·À·¶SQL×¢Èëʽ¹¥»÷ 
 
Ò»¡¢Ê²Ã´ÊÇSQL×¢Èëʽ¹¥»÷£¿
¡¡¡¡ËùνSQL×¢Èëʽ¹¥»÷£¬¾ÍÊǹ¥»÷Õß°Ñ ......

ASP.NET 4µ±ÖÐUrl RoutingµÄÖ§Ô®

ASP.NET 4µÄWeb Formsµ±ÖУ¬×îÁîÈ˼¤É͵ģ¬ÔòĪ¹ýÓÚÊÇURL Routing»úÖƵÄÈ«ÃæÖ§³Ö¡£¹ýÈ¥ÔÚASP.NET 3.5 SP1µ±ÖУ¬Web Forms»ò¶à»òÉپͿªÊ¼Ö§³ÖURL Routing»úÖÆ£¬ËüÈÃÎÒÃÇÔÚÍøÖ·µÄ³ÊÏÖÒÔ¼°Ê¹ÓÃÉϸü¼ÓµÄÓе¯ÐÔ¡£
¹ýÈ¥ÎÒÃÇÔÚASP.NETµ±ÖУ¬Ï°¹ßÓÚµ×ÏÂÕâÑùµÄÍøÖ·³ÊÏÖ·½Ê½£º
http://myWebSite/EditProduct.aspx?Id=1
µ«×î½ü¼¸ÄêR ......

Asp.netÒ¹»°Ö®Ò»£ºasp.net½éÉÜ


ÌâÍâ»°£ºÈ¥ÄêÖÁ½ñÄêÒÔÀ´£¬Â½Ðøд¹ýһЩԭ´´µÄÎÄÕÂÁË£¬ºÜ¶àÊǶÔÔ­À´Ëù×öÏîÄ¿µÄ×ܽᡣËùÒÔ²¢²»ÊǺÜϵͳºÜÈ«Ã棬¶¼ÊÇÕë¶Ôij¸ö֪ʶµã»òÕßij¸ö¾ßÌåÓ¦ÓÃдµÄ£¬ÓÐЩÅóÓѽ¨ÒéÎÒ°Ñ×Ô¼ºµÄÌå»áд³ÉÒ»¸öϵͳµÄ£¬Õâ´ÎËãÊÇÒ»¸ö³¢ÊÔ°É£¬Ð´µÃ²»ºÃµÄµØ·½Çë´ó¼Ò¾¡Á¿Å×Î÷ºìÊÁ²»Òª¶ª×©Í·¡£
Ö®ËùÒÔ°ÑÕâ¸öϵÁнÐ×ö¡¶asp.netÒ¹»°¡·£¬ÊÇÓÐÒ»Ð©Ô­Ò ......

Ìá¸ßAsp.NetÍøÕ¾ÐÔÄÜ

  &#8226;   ²»ÒªÊ¹Óò»±ØÒªµÄSession£¬ºÍASPÖÐÒ»Ñù£¬ÔÚ²»±ØÒªµÄʱºò²»ÒªÊ¹ÓÃSession  
  &#8226;   ²»Ê¹Óò»±ØÒªµÄServer Control  
  &#8226;   ²»Ê¹Óò»±ØÒªµÄViewState  
  &#8226;   ²»ÒªÓÃExcepti ......

asp.net±¸·ÝÊý¾Ý¿â


Asp.Net ±¸·ÝºÍ»Ö¸´SQL SERVER Êý¾Ý¿â
   ÎÒÃÇͨ³£±¸·ÝÊý¾Ý¿âʱ£¬ÐèÒªµÇ¼Êý¾Ý¿â·þÎñÆ÷È¥±¸·ÝºÍ»Ö¸´£¬ÕâÑùºÜ²»·½±ã£¬ÆäʵSQL SERVER×Ô´øµÄÃüÁî¿ÉÄÜÈÃÎÒÃǺܼòµ¥µØʵÏÖÔ¶³Ìͨ¹ýAsp.Net±¸·ÝºÍ»Ö¸´Êý¾Ý¿â¡£
BACKUP DATABASE '±»±¸·ÝµÄÊý¾Ý¿âÃû' TO DISK = '±¸·ÝÎļþ·¾¶';
ALTER DATABASE '±»»Ö¸´µÄÊý¾Ý¿âÃû' ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ