summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-07-20 21:05:41 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-07-20 21:05:41 -0700
commit979ee12aac05b225fe47c24778607bf8f4f62822 (patch)
tree2509aab883bd3e69d6abc7fa5b68490acc2e3b56
parentece5b5a4d7d61336a13eae8393a07be8c3bbf6b1 (diff)
downloadDotNetOpenAuth-979ee12aac05b225fe47c24778607bf8f4f62822.zip
DotNetOpenAuth-979ee12aac05b225fe47c24778607bf8f4f62822.tar.gz
DotNetOpenAuth-979ee12aac05b225fe47c24778607bf8f4f62822.tar.bz2
Fixed bug where OpenIdTextBox doesn't emit its CssClass value.
-rw-r--r--src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs
index 5eb5d41..1b51859 100644
--- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs
+++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs
@@ -552,6 +552,10 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
writer.AddStyleAttribute(HtmlTextWriterStyle.BorderColor, "lightgray");
}
+ if (!string.IsNullOrEmpty(this.CssClass)) {
+ writer.AddAttribute(HtmlTextWriterAttribute.Class, this.CssClass);
+ }
+
writer.AddAttribute(HtmlTextWriterAttribute.Id, this.ClientID);
writer.AddAttribute(HtmlTextWriterAttribute.Name, HttpUtility.HtmlEncode(this.Name));
writer.AddAttribute(HtmlTextWriterAttribute.Type, "text");