, click LinkButton . - , , _0, _1 .. . , 2 111555 222666. ID, :
contentMain_gridviewMessages_111555_0
contentMain_gridviewMessages_222666_1
, , , , , :
var msgLink = ('a[messageId="' + messageId + '"]');
After that, I used a bit of jQuery to get the automatically generated identifier:
var id = $(msgLink).attr("ID");
When I got the good ole id, javascript did the rest:
document.getElementById(id).click();
Hope this helps someone.
Brian source
share