如果用戶己經登錄
<RoleGroups>
<asp:RoleGroup Roles=
<ContentTemplate>
<p>
Welcome back
<asp:LoginName ID=
<p>
There are always lots of exciting things happening with the fan club
you already know from the email we regularly send out
the email yet is the proposed end of season BBQ
(not that we really need an excuse)
and tickets will be heavily discounted for fan club members as a thank you for all
of the great support you
your eyes on your inbox for more details
</p>
</ContentTemplate>
</asp:RoleGroup>
Fan Club成員將看到具有一些文字的自定義頁面
如果用戶是其他一個角色(Administrator
<asp:RoleGroup Roles=
<ContentTemplate>
To see the Fan Club features you need to be a member
entry to the fan club
</ContentTemplate>
</asp:RoleGroup>
</RoleGroups>
如果希望擴展站點的這個部分
該示例演示了如何根據誰登錄到站點來簡捷地改變站點的顯示內容
因此
ASP
[
From:http://tw.wingwit.com/Article/program/net/201311/14497.html