c# - How to use a page after opening another page with target=_blank? -


i can open window display stuff, cannot use buttons on original page anymore. why , how fix it? code:

<asp:button id="button_viewsimplerequest" text="simple request" runat="server" onclientclick="window.document.forms[0].target='_blank'"  postbackurl="~/xyz.aspx" /> <asp:button id="button_self" text="self" runat="server" onclientclick="window.document.forms[0].target='_self'" /> 

after clicking first button, second button redirects xyz.aspx. how make second button behave normal button on original page?

i tried: <asp:button id="button_viewsimplerequest" text="simple request" runat="server" onclientclick="window.open('xyz.aspx', 'name')" /> simple, , seems work.

i found solution studying how launch aspx web page upon button click.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -