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
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔǰµÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕß¶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
°ÑÎÒ×öµÚÒ»´Î×öϵͳʱ¶ÔÖØÌî°´Å¥µÄʵÏּǼÈçÏ£º
µÚÒ»´ÎÓÃImageButton¿ÉÒÔÉèÖñ³¾°Í¼Æ¬£¬È»ºóÔÚºǫ́µÄClickʼþÖÐдÈçÏÂ
this.TxtCallNo.Text = "";
this.TxtCaller.Text = "";
this.TxtTranDate.Text = "";
this.TxtTranLimit.Text = "";
this.TxtTra ......
ÐèÇó
ÈçÏÂÃæµÄÏîÄ¿½á¹¹£¬ÎÒÃÇ»áÔÚDefault.aspxÒ³ÃæÖÐÐèÒª´«µÝÁ½¸öÖµµ½SilverlightTestPage.aspxÒ³Ãæ£¬²¢ÇÒÐèÒªÔÚSilverlightTestPage.aspxÒ³ÃæËùËÞÖ÷µÄSilverlightÓ¦ÓóÌÐòÖлñÈ¡²¢ÏÔʾ£º
1.ÏÈÐÞ¸Äpage µÄ¹¹Ô캯Êý
public Page(string passText)
{
InitializeComponent();
& ......
IEµÄ×Ô´øÏÂÔØ¹¦ÄÜÖÐûÓжϵãÐø´«¹¦ÄÜ£¬ÒªÊµÏֶϵãÐø´«¹¦ÄÜ£¬ÐèÒªÓõ½HTTPÐÒéÖÐÏÊΪÈËÖªµÄ¼¸¸öÏìӦͷºÍÇëÇóÍ·¡£
Ò». Á½¸ö±ØÒªÏìӦͷAccept-Ranges¡¢ETag
¿Í»§¶Ëÿ´ÎÌá½»ÏÂÔØÇëÇóʱ£¬·þÎñ¶Ë¶¼ÒªÌí¼ÓÕâÁ½¸öÏìӦͷ£¬ÒÔ±£Ö¤¿Í»§¶ËºÍ·þÎñ¶Ë½«´ËÏÂÔØÊ¶±ðΪ¿ÉÒԶϵãÐø´«µÄÏÂÔØ£º
......
Èç¹ûÓ¦ÓóÌÐòʹÓà ASP.NET ³ÉÔ±×ʸñϵͳÀ´¶ÔÓû§½øÐÐÉí·ÝÑéÖ¤£¬ÔòÄú¿ÉÒÔʹÓà CreateUserWizard ¿Ø¼þÀ´ÔÊÐíÓû§ÔÚ³ÉÔ±×ʸñϵͳÖд´½¨Ò»¸öеÄÓû§ÏCreateUserWizard ¿Ø¼þ»¹¿ÉÒÔ¹©¹ÜÀíÔ±ÓÃÀ´´´½¨ÐÂÓû§£©¡£
1¡¢´´½¨»ò±à¼Ò»¸ö²»ÐèҪȨÏÞµÄ ASP.NET ÍøÒ³¡£
2¡¢Ê¹ÓÃÏÂà ......