Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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Ô¤±àÒë

 asp.netÓ¦ÓõÚÒ»´Î·ÃÎÊʱʱÓÉÓÚÒª±àÒ룬ËùÒÔ·´Ó¦Âý£¬ÑÏÖØÓ°ÏìÓû§ÌåÑ飡£¨ÒÔÖ±»Óû§±§Ô¹ËÙ¶ÈÂý£º£¨£©£¬Ô¤±àÒëÖ®ºóÃ÷ÏÔÌá¸ß·´Ó¦Ëٶȣº£©
Àý£º
D:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_compiler -v /anything -p E:\erp_pr
o_vss0330\1.1\erp_pro_vss\WebApp D:\ERPApp
˵Ã÷£ºanything Èκζ¼ÐÐ ......

ASP.NETÖг£ÓõÄ26¸öÓÅ»¯ÐÔÄÜ·½·¨(11


 
11. ½«µ÷ÓÃÃܼ¯Ð굀 COM ×é¼þǨÒƵ½ÍйܴúÂë ¡¡¡¡
.NET Framework ÌṩÁËÒ»¸ö¼òµ¥µÄ·½·¨Ó봫ͳµÄ COM ×é¼þ½øÐн»»¥¡£ÆäÓŵãÊÇ¿ÉÒÔÔÚ±£ÁôÏÖÓÐͶ×ʵÄͬʱÀûÓÃеÄƽ̨¡£µ«ÊÇÔÚijЩÇé¿öÏ£¬±£Áô¾É×é¼þµÄÐÔÄÜ¿ªÏúʹµÃ½«×é¼þǨÒƵ½ÍйܴúÂëÊÇÖµµÃµÄ¡£Ã¿Ò»Çé¿ö¶¼ÊDz»Ò»ÑùµÄ£¬¾ö¶¨ÊÇ·ñÐèҪǨÒÆ×é¼þµÄ×îºÃ·½·¨ÊÇ¶Ô Web Õ ......

ASP.NETÖг£ÓõÄ26¸öÓÅ»¯ÐÔÄÜ·½·¨(20


21. Ö»ÔÚ±ØҪʱ±£´æ·þÎñÆ÷¿Ø¼þÊÓͼ״̬ ¡¡¡¡
×Ô¶¯ÊÓͼ״̬¹ÜÀíÊÇ·þÎñÆ÷¿Ø¼þµÄ¹¦ÄÜ£¬¸Ã¹¦ÄÜʹ·þÎñÆ÷¿Ø¼þ¿ÉÒÔÔÚÍù·µ¹ý³ÌÉÏÖØÐÂÌî³äËüÃǵÄÊôÐÔÖµ(Äú²»ÐèÒª±àдÈκδúÂë)¡£µ«ÊÇ£¬ÒòΪ·þÎñÆ÷¿Ø¼þµÄÊÓͼ״̬ÔÚÒþ²ØµÄ´°Ìå×Ö¶ÎÖÐÍù·µÓÚ·þÎñÆ÷£¬ËùÒԸù¦ÄÜȷʵ»á¶ÔÐÔÄܲúÉúÓ°Ïì¡£ÄúÓ¦¸ÃÖªµÀÔÚÄÄЩÇé¿öÏÂÊÓͼ״̬»áÓÐËù°ïÖú£¬ÔÚÄÄÐ ......

iisÊôÐÔûÓÐasp.net Ñ¡Ïî


1£¬Èç¹ûÊÇÖ»°²×°ÁË.net framework 1.1 ÔÚiisÖÐÊDz»ÏÔʾÄǸöÑ¡ÏµÄ¡£Ä¬ÈϾͻáÖ§³Öasp.net1.1¡£ÔÚ°²×°ÁË.net framework 2.0ºó£¬iisÕ¾µãÊôÐÔÀï²Å»áÓÐasp.netµÄÑ¡Ïî¡£
2£¬°²×°asp.net2.0ºó£¬Çë¹Ø±Õiis´°¿Ú£¬ÖØдò¿ªiis£¬iisÕ¾µãÊôÐÔÀï²Å»áÓÐasp.netµÄÑ¡Ïî
3£¬Èç¹û»¹Ã»ÓУ¬ÄÇô¾ÍÒªÖØÐÂÔÚIISÖÐ×¢²áasp.net£¬·½·¨ÈçÏ£º ......

ASP.NET

 ÎÒµÄÀí½âprofile¾ÍÊÇͨ¹ýÎÒÃDZàдµÄÅäÖÃÎļþ ×Ô¶¯µÄÔÙÊý¾Ý¿âÖб£´æÎÒÃÇÐèÒªµÄÊý¾Ý¡£
ÕâÊÇÒ»¸ö¼òµ¥µÄÅäÖãº
  <profile automaticSaveEnabled="true" defaultProvider="sqlprocider">
<providers>
<add name="sqlprocider" type="Syste ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ