asp.net - jQuery call __doPostBack on LinkButton -
I have a link button for which I need to click to create a postback, the actual link target is:
Javascript: __ doPostBack ('ctl00 $ c1 $ btnRefreshGrid', '');
Postback from clicking on the link, as verified by the code-back breakpoint. Also paste the javascript: __ doPostBack ('ctl00 $ c1 $ btnRefreshGrid', '')
in the address bar of the browser works with the same effect.
I have tried the following with no effect:
__ doPostBack ('ctl00 $ c1 $ btnRefreshGrid', ''); . Click on $ ('# ctl00 $ c1 $ btnRefreshGrid') (); . $ ('# Ctl00 $ c1 $ btnRefreshGrid') trigger ('click'); Eval ($ ('# ctl00 $ c1 $ btnRefreshGrid') attr ("href").); I have both the & lt;% = btnRefreshGrid.UniqueID% & gt;
and and lt;% = btnRefreshGrid.ClientID% & gt;
to generate selector
You were locked, it works in Firefox:
Function ClickButton () {Javascript: __ doPostBack ('& lt;% = MYBUTTONID.UniqueID%>', '')};
Comments
Post a Comment