ASP.NET - default text in multiline textbox - Asked By ram hire on 23-Feb-13 12:02 AM

i want to give default text in multiline textbox like Max  1000 char and that text should be on center ,how to do this please give any sample code

thanks
Danasegarane Arunachalam replied to ram hire on 24-Feb-13 02:48 AM
How about this one?


<asp:TextBox id="tb3" TextMode="multiline" runat="server" value="Max  1000 char" onFocus="if (value == 'Max  1000 char') {value=''}" onBlur="if (value== '') {value='Max  1000 char'}" style="text-align:center" />