I spied on MSDN and do not see the property / method for the TextBox, which allows you to get the default text value that was set in the field; I want to compare the current txtMyTextBox.Text with the default value (for example, this shows the psuedo code):
var myValue = (String.Compare(txtMyTextBox.Text, txtMyTextBox.DefaultText) ? "" : txtMyTextBox.Text)
Is this something that exists in an ASP.NET control? Or am I asking too much? :)
Thanks for any help (as always)!
Pete
source
share