mmJemisonKenastonuu
New Member
I am using/abusing CSS classes and custom html attributes to provide default data to a set of textboxes. The code-front for this looks like the following (with some supporting javascript to handle checking/setting the default data when the field is blank):\[code\]<asp:TextBox ID="TXT_LenderName" class='defaultText' data-default='Institution Name' runat="server"></asp:TextBox>\[/code\]This works.I am working on the code-behind to process this form. I would like to be able to compare the value of the \[code\]TXT_LenderName.Text\[/code\] to the value of the \[code\]data-default\[/code\] attribute, but I haven't been able to find a way to get the value of a custom html attribute. Suggestions?