I have a LinkButton that I need to click to trigger a postback. Actual target of the link:
javascript:__doPostBack('ctl00$c1$btnRefreshGrid','');
Clicking a link performs a postback, as verified by a breakpoint in the code. Also inserting javascript:__doPostBack('ctl00$c1$btnRefreshGrid','')into the address bar of the browser works with the same effect.
I tried the following without any effect:
__doPostBack('ctl00$c1$btnRefreshGrid','');
$('#ctl00$c1$btnRefreshGrid').click();
$('#ctl00$c1$btnRefreshGrid').trigger('click');
eval($('#ctl00$c1$btnRefreshGrid').attr("href"));
I tried to use <%= btnRefreshGrid.UniqueID %>and <%= btnRefreshGrid.ClientID %>to create a selector.
source
share