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

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -