Posted on: 1/19/2015 6:27:23 PM | Views : 508

I'm using VS 2010.
I have a textbox in a gridview.  The textbox is referred by a http handler.  In order for the handler to work on the textxbox it needs the textbox's client id.  However, since the textbox is in an ItemTemplate of a gridview an error comes up that the textbox doesn't exist in the context.  Here is the code I have:
$("#<%= txtPTDonor.ClientID %>").tokenInput("EmployeeHandler.ashx", { tokenLimit: 1, preventDuplicates: true, hintText: "Search with SID/First Name/Last Name/Email.", searchingText: 'Searching in progress, please wait ...', noResultsText: "No matching result, modify search text & retry.", prePopulate: eval($("#<%= txtPTDonorHDN.ClientID %>").html()), ...

Go to the complete details ...