Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 07, 2013 02:07 AM by chetan.sarode
Jan 06, 2013 09:50 AM|LINK
I have One One DataGrid , in this DataGrid i have one More Child DataGrid.
In Child DataGrid I have One ItemTemplate...In this ItemTemplate i have one TextBox.
I have to Limit the Number Of Characters in this TextBox, When user eneter into textbox.
onkeypress="return this.value.length<=20 (This is working )
<asp:TextBox ID="txtfeedback" Style="padding-right:10px" TextMode="MultiLine" Columns="38" Rows="2" runat="server" onkeypress="return this.value.length<=20" ></asp:TextBox>
When i enter characters , it allowing 20 characters and after that it not allowing eneter characters.
But i need to show in some Lable like if you type 12 characters in textox we need to show 8 characters remaining.
like that i want output, but the TextBox is inside GridView.
Please hellp me,
Jan 06, 2013 10:10 AM|LINK
MaxLength property on the TextBox in the ItemTemplate, like this:
<asp:TextBox id="myTextbox" runat="server" MaxLength="10" />
Jan 06, 2013 03:00 PM|LINK
I set Maxlenth property for TextBox Inside Child DataGrid, but it's not working.
Can you please give me another approach to do.
Jan 07, 2013 02:07 AM|LINK