summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdRelyingPartyWebForms/Site.Master
blob: a7a3dab427ddb6126174e8afc47c4e59f05cab1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<%@ Master Language="C#" AutoEventWireup="true" %>
<%@ Import Namespace="OpenIdRelyingPartyWebForms" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
	protected void Page_Load(object sender, EventArgs e) {
		friendlyUsername.Text = State.FriendlyLoginName;
	}

	protected void LoginStatus1_LoggedOut(object sender, EventArgs e) {
		State.Clear();
	}
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title>OpenID Relying Party, by DotNetOpenAuth</title>
	<link href="styles.css" rel="stylesheet" type="text/css" />
	<asp:ContentPlaceHolder ID="head" runat="server" />
</head>
<body>
	<form id="form1" runat="server">
	<span style="float: right">
		<asp:Image runat="server" ID="openIdUsernameImage" ImageUrl="~/images/openid_login.png"
			EnableViewState="false" />
		<asp:Label runat="server" ID="friendlyUsername" Text="" EnableViewState="false" />
		<asp:LoginStatus ID="LoginStatus1" runat="server" OnLoggedOut="LoginStatus1_LoggedOut" />
	</span>
	<div>
		<a href="http://dotnetopenauth.net">
			<img runat="server" src="~/images/DotNetOpenAuth.png" title="Jump to the project web site."
				alt="DotNetOpenAuth" border='0' /></a>
	</div>
	<div>
		<asp:ContentPlaceHolder ID="Main" runat="server" />
	</div>
	</form>
</body>
</html>