-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: DotNetKasi
Message 6 in Discussion
Hi,<o:p></o:p>
<o:p></o:p>
We can set multi line text box with Height and Width as following method<o:p></o:p>
<o:p></o:p>
A Textbox with height:<o:p></o:p>
<asp:TextBox id="tb6" rows="5" TextMode="multiline" runat="server" /><o:p></o:p>
<o:p></o:p>
A Textbox with width:<o:p></o:p>
<asp:TextBox id="tb5" columns="30" runat="server" /><o:p></o:p>
<o:p></o:p>
<o:p></o:p>
Add this code in the codebehind page load or page init event.<o:p></o:p>
<o:p></o:p>
tb5.Attributes.Add("onBlur", "return checklength();")<o:p></o:p>
<o:p></o:p>
Write Simple javascript length checking inside this function.<o:p></o:p>
checklength()<o:p></o:p>
<o:p></o:p>
This function will be executed once the controls come out from the tb5 textbox. Using
this method to restrict length of a multilane text box.<o:p></o:p>
<o:p></o:p>
Thanks and Regards,<o:p></o:p>
J.Kasiviswanath<o:p></o:p>Birlasoft Ltd.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]