I\'m trying to open a page in new tab/window on button click.I tried in the google got this code but its not working.
Can anybody help me with this?
This is what I ended up using. Temporarily sets target to _blank, then sets it back.
OnClientClick="var originalTarget = document.forms[0].target; document.forms[0].target = '_blank'; setTimeout(function () { document.forms[0].target = originalTarget; }, 3000);"