summaryrefslogtreecommitdiffstats
path: root/samples/RelyingPartyWebForms/TracePage.aspx.cs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/RelyingPartyWebForms/TracePage.aspx.cs')
-rw-r--r--samples/RelyingPartyWebForms/TracePage.aspx.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/samples/RelyingPartyWebForms/TracePage.aspx.cs b/samples/RelyingPartyWebForms/TracePage.aspx.cs
new file mode 100644
index 0000000..799e99a
--- /dev/null
+++ b/samples/RelyingPartyWebForms/TracePage.aspx.cs
@@ -0,0 +1,20 @@
+namespace RelyingPartyWebForms {
+ using System;
+ using System.Collections.Generic;
+ using System.Web;
+ using System.Web.UI;
+ using System.Web.UI.WebControls;
+
+ public partial class TracePage : System.Web.UI.Page {
+ protected void Page_Load(object sender, EventArgs e) {
+ this.placeHolder1.Controls.Add(new Label { Text = 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.
+ this.Response.Redirect(this.Request.Url.AbsoluteUri);
+ }
+ }
+}