|
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="ASP.Net FormsAuthentication user impersonation" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2>Home</h2>
<h3>User impersonation control</h3>
<p><asp:Button ID="ImpersonateButton" runat="server" Text="Impersonate Alice" OnClick="Impersonate" /></p>
<h3>Alice's private page</h3>
<p><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Private/Alice.aspx" Text="Private/Alice.aspx" /></p>
</asp:Content>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.