T
tao lin
Hi, all
I am using VS2003 under WinXP. My WebApp has a WebForm which has a html
form has some search condition textbox, once the user fill in the condition
and click submit button. My app will stay in the same WebForm but open a
popup window in the browser to show the search results.
So I implement like this:
private void btnSubmit_Click(object sender, System.EventArgs e)
{
if (Page.IsValid)
{
Response.Write( "<script id='jsRpt'
language=javascript>window.open('"SearchResult.aspx"','new_Win');</script>")
;
}
}
It works fine for me. The only problem I get is: If the user click the
submit button more than one time, then click the IE browser 'back' button,
my WebForm will automatically open the previous popup window because IE
cache the html page and my popup window JavaScript is on the top of the html
page.
And I can not use <%@ OutputCache Location="None" %> because it will cause
my html form timeout.
So does anyone has some good suggestion that can handle a popup window with
html form within one aspx webform?
Cheers,
Tao
I am using VS2003 under WinXP. My WebApp has a WebForm which has a html
form has some search condition textbox, once the user fill in the condition
and click submit button. My app will stay in the same WebForm but open a
popup window in the browser to show the search results.
So I implement like this:
private void btnSubmit_Click(object sender, System.EventArgs e)
{
if (Page.IsValid)
{
Response.Write( "<script id='jsRpt'
language=javascript>window.open('"SearchResult.aspx"','new_Win');</script>")
;
}
}
It works fine for me. The only problem I get is: If the user click the
submit button more than one time, then click the IE browser 'back' button,
my WebForm will automatically open the previous popup window because IE
cache the html page and my popup window JavaScript is on the top of the html
page.
And I can not use <%@ OutputCache Location="None" %> because it will cause
my html form timeout.
So does anyone has some good suggestion that can handle a popup window with
html form within one aspx webform?
Cheers,
Tao