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!!!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment