<asp:HyperLink ID="hlnkShow" runat="server" CssClass="showButton" OnClick='<%# Attach(Eval("ID")) %>' Text="Show" ToolTip="View the contents of the message"> </asp:HyperLink>
in the code located in the attach function
protected string Attach(object ObjectID) { return ("return showComments($(this),'" + ObjectID + "');"); }
in aspx again in javascript
function showComments($element, objectID) { $('input[type=hidden][id$=hfObjectID]').val(objectID); }
and using this iam hidden field value making an ajax call and the problem is solved.
Mac
source share