summaryrefslogtreecommitdiffstats
path: root/samples/OAuthServiceProvider/TracePage.aspx.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-03-26 14:17:05 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-03-26 14:17:05 -0700
commit1bfeae7973d31f3e69a83793d95904abf4f653bc (patch)
tree50938143aae7a17001c68c99ffc3bcdb5bac6f1f /samples/OAuthServiceProvider/TracePage.aspx.cs
parent00f1f6baf79d6f42bcaaf24b1e43f3c86f540b2a (diff)
downloadDotNetOpenAuth-1bfeae7973d31f3e69a83793d95904abf4f653bc.zip
DotNetOpenAuth-1bfeae7973d31f3e69a83793d95904abf4f653bc.tar.gz
DotNetOpenAuth-1bfeae7973d31f3e69a83793d95904abf4f653bc.tar.bz2
Renamed OAuth sample sites.
Diffstat (limited to 'samples/OAuthServiceProvider/TracePage.aspx.cs')
-rw-r--r--samples/OAuthServiceProvider/TracePage.aspx.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/samples/OAuthServiceProvider/TracePage.aspx.cs b/samples/OAuthServiceProvider/TracePage.aspx.cs
new file mode 100644
index 0000000..52848f2
--- /dev/null
+++ b/samples/OAuthServiceProvider/TracePage.aspx.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+/// <summary>
+/// A page to display recent log messages.
+/// </summary>
+public partial class TracePage : System.Web.UI.Page {
+ protected void Page_Load(object sender, EventArgs e) {
+ this.placeHolder1.Controls.Add(new Label { Text = HttpUtility.HtmlEncode(Global.LogMessages.ToString()) });
+ }
+
+ protected void clearLogButton_Click(object sender, EventArgs e) {
+ Global.LogMessages.Length = 0;
+
+ // clear the page immediately, and allow for F5 without a Postback warning.
+ Response.Redirect(Request.Url.AbsoluteUri);
+ }
+}