H
hb
Hi,
I have a asp:button btnGo. When clicking this button,
the code will parse a asp:table to find a specific ID
under certain conditions. Once the ID is found, the code
need to keep the current page open and to redirect the
user to a newly opened browser window with a link like:
http://www.mydomain.com/tellme.aspx?clientID="+ID
But the Response.Redirect(URL) opens a new page in the same
window.
Someone suggested to insert a JavaScript function to button's
OnClick event. But this insertion needs to be done in Page_Load().
And the parameter the target url needs is not available yet at
page load time.
If I insert the window.open() JavaScript in btnGo_Click() event,
the window.open JavaScript will only be available after first click
event.
I also thought of asp:hyperlink control. It does have a target property
and can not fire any event on server side.
Would you please give some work around idea regarding what I
want to do?
Thank you
hb
I have a asp:button btnGo. When clicking this button,
the code will parse a asp:table to find a specific ID
under certain conditions. Once the ID is found, the code
need to keep the current page open and to redirect the
user to a newly opened browser window with a link like:
http://www.mydomain.com/tellme.aspx?clientID="+ID
But the Response.Redirect(URL) opens a new page in the same
window.
Someone suggested to insert a JavaScript function to button's
OnClick event. But this insertion needs to be done in Page_Load().
And the parameter the target url needs is not available yet at
page load time.
If I insert the window.open() JavaScript in btnGo_Click() event,
the window.open JavaScript will only be available after first click
event.
I also thought of asp:hyperlink control. It does have a target property
and can not fire any event on server side.
Would you please give some work around idea regarding what I
want to do?
Thank you
hb