Hi,I am New To This .
I have to check the duplications of values entered in textbox which is placed inside the datagrid using javascript
.And the Number of textbox is not constant it is dynamically added can any one solve this
Hi,
Two approaches.
1. Check the text entered in the textbox is numeric or not using the onblur event of the textbox. This would be something like this.
<asp:GridView ID="GridView1" runat="server">
.
.
<asp:TextBox ID="txtNo" runat="server" onblur="javascript
:IsNumeric(this.value);"></asp:TextBox>
.
.
</asp:GridView>
2. Have a global javascript variable which will be concatenated with the id of the dynamically added textboxes.
Upon click of the submit button use this variable to get the id's and check for their value.
hope this suggestion would be useful..
With regards,
ram