Sunday, December 20, 2009

Set NullText property for AspxTextBox and AspxDropDownEdit Editor controls

Editor's NullText property can be used to display a prompt in the editor's edit box. The specified text is displayed if the editor's value is null and the editor is not focused. The prompt text disappears when the editor receives focus.

Code:

ASPXTextBox txt = new ASPXTextBox();
txt.ID = "TextBox1";
txt.ClientInstanceName= "TextBox1";
txt.NullText ="Enter User Name!!";

Happy Progrmming!!!

No comments:

Post a Comment