diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-03-26 14:04:40 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-03-26 14:04:40 -0700 |
commit | d7bec791ff0b1fe6517c2b450d6fd1116d0a8ea7 (patch) | |
tree | 019bb8c875e2fa9c5ca07bb17af17891411307cf /samples/OpenIdRelyingPartyWebForms/TracePage.aspx.cs | |
parent | 540f088953154bee2356cdf5f65a097cb6d3ebe4 (diff) | |
download | DotNetOpenAuth-d7bec791ff0b1fe6517c2b450d6fd1116d0a8ea7.zip DotNetOpenAuth-d7bec791ff0b1fe6517c2b450d6fd1116d0a8ea7.tar.gz DotNetOpenAuth-d7bec791ff0b1fe6517c2b450d6fd1116d0a8ea7.tar.bz2 |
Renamed OpenID RP sample projects.
Diffstat (limited to 'samples/OpenIdRelyingPartyWebForms/TracePage.aspx.cs')
-rw-r--r-- | samples/OpenIdRelyingPartyWebForms/TracePage.aspx.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/samples/OpenIdRelyingPartyWebForms/TracePage.aspx.cs b/samples/OpenIdRelyingPartyWebForms/TracePage.aspx.cs new file mode 100644 index 0000000..171bb67 --- /dev/null +++ b/samples/OpenIdRelyingPartyWebForms/TracePage.aspx.cs @@ -0,0 +1,20 @@ +namespace OpenIdRelyingPartyWebForms { + 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 = 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. + this.Response.Redirect(this.Request.Url.AbsoluteUri); + } + } +} |