ASP.NET ÈçºÎ£ºÏòÄäÃûÓû§ºÍµÇ¼Óû§ÏÔʾ²»Í¬µÄÐÅÏ¢
ͨ¹ýÔÚÒ³ÉÏ°üº¬ LoginView ¿Ø¼þ¿ÉÒÔÏòÄäÃûÓû§ºÍµÇ¼£¨¾¹ýÉí·ÝÑéÖ¤µÄ£©Óû§ÏÔʾ²»Í¬µÄÐÅÏ¢¡£LoginView ¿Ø¼þ°üº¬Á½¸öÄ£°å£ºÒ»¸öÓÃÓÚÏòÄäÃûÓû§ÏÔʾÐÅÏ¢£¬ÁíÒ»¸öÓÃÓÚÏòµÇ¼Óû§ÏÔʾÐÅÏ¢¡££¨»¹¿ÉÒÔʹÓà RoleGroups ÊôÐÔ°üº¬»ùÓÚ½ÇÉ«Ãû³ÆµÄÄ£°å¡££©¸Ã¿Ø¼þ×Ô¶¯È·¶¨Óû§ÊÇ·ñ¾¹ýÉí·ÝÑéÖ¤²¢³ÊÏÖÏàÓ¦µÄÄ£°å¡£
1¡¢ÔÚ ASP.NET Ò³µÄ“Éè¼Æ”ÊÓͼÖУ¬´Ó“¹¤¾ßÏ䔵ēµÇ¼”Îļþ¼ÐÖн«Ò»¸ö LoginView ¿Ø¼þÍ϶¯µ½Ò³ÉÏ¡£
2¡¢Èç¹û“LoginView ÈÎÎñ”Ãæ°åδÏÔʾ£¬ÔòÓÒ»÷¸Ã¿Ø¼þ²¢µ¥»÷“ÏÔʾÖÇÄܱê¼Ç”ÒÔÏÔʾ“LoginView ÈÎÎñ”Ãæ°å¡£ ĬÈÏÇé¿öÏ£¬¸Ã¿Ø¼þÏÔʾ AnonymousTemplate¡£
3¡¢Ìí¼ÓÓ¦¶ÔδµÇ¼µÄÓû§¿É¼ûµÄ¾²Ì¬Îı¾ºÍ¿Ø¼þ£¬ÈçÓÃÓÚÓû§µÇ¼¡¢»Ö¸´ÃÜÂë»ò´´½¨ÐÂÓû§ ID µÄ Login ¿Ø¼þ¡£
4¡¢ÔÚ“LoginView ÈÎÎñ”²Ëµ¥ÖУ¬´Ó“ÊÓͼ”ÁбíÖÐÑ¡Ôñ LoggedInTemplate¡£
5¡¢Ìí¼ÓÓ¦¶Ô¾¹ýÉí·ÝÑéÖ¤µÄÓû§¿É¼ûµÄ¾²Ì¬Îı¾ºÍ¿Ø¼þ£¬Èç FormatString ÊôÐÔÉèÖÃΪ»¶ÓÏûÏ¢µÄ LoginName ¿Ø¼þ¡£
<asp:LoginView ID="LoginView1" Runat="server">
<LoggedInTemplate>
<asp:LoginName ID="LoginName1" Runat="server"
FormatString ="Welcome, {0}"/>
<br />
<asp:HyperLink ID="HyperLink1" Runat="server"
NavigateUrl="~/MemberPages/ChangePassword.aspx">
Change Password
</asp:HyperLink>
</LoggedInTemplate>
<AnonymousTemplate>
<asp:Login id="Login1" runat="server"
CreateUserText="Create a new user..."
CreateUserUrl="~/Register.aspx"
PasswordRecoveryUrl="~/Recovery.aspx"
UserNameLabelText="E-mail address:" />
</Anony
Ïà¹ØÎĵµ£º
»·¾³£ºasp.net +oracle9+windows2003
ÔÚ±¾µØ²âÊÔÍøÕ¾ÍêȫûÓÐÎÊÌâ¡£µ«ÊÇÒ»ÉÏ´«µ½·þÎñÆ÷¾Í³öÎÊÌâÁË£¬Êý¾Ý¿âÎÞ·¨Á¬½Ó¡£ÓÉÓÚÔ¶³ÌûÓÐVS»·¾³£¬ËùÒÔÎÞ·¨µ÷ÊÔ¡£ÕæÊÇ·ÑÁËÅ£¾¢²ÅÕÒµ½½â¾ö·½°¸£º
Problem Description ------------------- When running an application that connects to Oracle and uses the Authenticated ......
1.Ê×ÏȵÃÏÈÁ˽âÏÂÃæµÄ֪ʶ£º
Á˽âÒ»¸öÃû´Ê:±í´ïʽÓï·¨
±í´ïʽÓï·¨¸ñʽ£º<%$ ... %>
ËüÊÇASP.NET2.0ÐÂÔöÁËÒ»ÖÖÉùÃ÷ÐÔ±í´ïʽÓï·¨£¬¿ÉÔÚ·ÖÎöҳ֮ǰ½«ÖµÌæ»»µ½Ò³ÖÐ.
ASP.NET±í´ïʽÊÇ»ùÓÚÔËÐÐʱ¼ÆËãµÄÐÅÏ¢ÉèÖÿؼþÊôÐÔµÄÒ»ÖÖÉùÃ÷ÐÔ·½Ê½.
&n ......
¹ýÈ¥µÄ¼¸ÄêÀºÜ¶àÈËÒªÇóASP.NETµÄÒ»¼þÊÂÇé¾ÍÊǶÔʹÓûùÓÚmodel-view-controller£¨Ä£ÐÍ-ÊÓͼ-¿ØÖÆÆ÷,¼ò³ÆMVC£©¼Ü¹¹À´¿ª·¢webÓ¦ÓõÄÄÚÖÃÖ§³Ö¡£
ÉϸöÖÜÄ©ÔÚAustin¾ÙÐеÄAlt.NET´ó»áÉÏ£¬ÎÒÊ״ζÔÎÒµÄÍŶÓÕýÔÚ¿ª·¢µÄÐÂASP.NET MVC ¿ò¼Ü×÷ÁËÒ»¸ö¹«¿ªµÄÑÝʾ¡£Äã¿ÉÒÔÔÚScott HanselmanÕâÀïµÄ²©¿Í
ÉϹۿ´ÎҵĽ²×ùµÄ¼Ïñ¡£
ÎÒÃ ......
Èç¹ûÓ¦ÓóÌÐòʹÓà ASP.NET ³ÉÔ±×ʸñϵͳÀ´¶ÔÓû§½øÐÐÉí·ÝÑéÖ¤£¬ÔòÄú¿ÉÒÔʹÓà CreateUserWizard ¿Ø¼þÀ´ÔÊÐíÓû§ÔÚ³ÉÔ±×ʸñϵͳÖд´½¨Ò»¸öеÄÓû§ÏCreateUserWizard ¿Ø¼þ»¹¿ÉÒÔ¹©¹ÜÀíÔ±ÓÃÀ´´´½¨ÐÂÓû§£©¡£
1¡¢´´½¨»ò±à¼Ò»¸ö²»ÐèҪȨÏÞµÄ ASP.NET ÍøÒ³¡£
2¡¢Ê¹ÓÃÏÂà ......
¿ÉÒÔʹÓà ASP.NET Login ¿Ø¼þ´´½¨µÇ¼ҳ¡£´Ë¿Ø¼þÌáÈ¡Óû§ÃûºÍÃÜÂ룬²¢Ê¹Óà ASP.NET ³ÉÔ±×ʸñºÍ Forms Éí·ÝÑéÖ¤À´ÑéÖ¤Óû§µÄƾ¾Ý²¢´´½¨Éí·ÝÑé֤Ʊ֤¡£
1¡¢´´½¨Ò»¸öʹÓà ASP.NET ³ÉÔ±×ʸñµÄ ASP.NET Web Ó¦ÓóÌÐò¡£ÓйØÏêϸÐÅÏ¢ºÍʾÀý£¬Çë²Î¼ûÅäÖà ASP.NET Ó¦ÓóÌÐòÒÔʹÓóÉÔ±×ʸñ ......