You would need to do this with a client script.
Replace the value == "Enter Your Name" with the default text
<script type="text/javascript">
function resetMe(obj,value){
if (value == "Enter Your Name"){
obj.value= ""
}
}
</script>
In the page load place this code
UserName.Attributes.Add("onfocus", "resetMe(this,this.value)")
let me know if this works for you.
|