ASP.NET GRID VIEW CONTROL
How to check multiple textbox duplicate value in GridView control | Validate duplicate entry into the grid view in asp.net webform
Validate multiple Textbox duplicate value in GridView
function
GridViewDuplicateTextboxValueValidation(CheckTxtID) { //This is using to find textbox in grid view control. var $arrT = $('#<%=GridControlList.ClientID %>').find('input:text[id*="txtFormorder"]'); if ($arrT.length > 0) { for (var i = 0; i < $arrT.length; i++) { var $txt = $arrT[i]; if ($txt != document.getElementById(CheckTxtID)) { if ($($txt).val().toString() == document.getElementById(CheckTxtID).value.toString()) { alert("Order " + document.getElementById(CheckTxtID).value + " already exist."); document.getElementById(CheckTxtID).value = ""; } } } } } |
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.