Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this is my code for text box

C#
<asp:TextBox ID="txtRemarks" CssClass="form_input" runat="server" TextMode="MultiLine">

but my browser showing like this :

C#
<textarea maxlength="200" class="form_input" id="txtRemarks" cols="20" rows="2" name="ctl00$co_body$txtRemarks">


i dont need the maxlength attribute here how can i remove this

Help me,
Thanks in advance
velsamy
Posted
Updated 11-May-15 20:56pm
v2
Comments
Naveen Kumar Tiwari 12-May-15 2:43am    
Some where you set the max length value for your textbox...find it out and replace it what value you want..

1 solution

By Reading the code of the TextBox control it is not clear from where that value of 200 comes from, but if you set MaxLength to 0 it will not be rendered at all...
 
Share this answer
 
Comments
avelsamy 1-Jun-15 8:45am    
it was my mistake in my code behind i ave set the maxlength

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900