Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 framset target as "body" to show the search results.

So I implement like this:
C#
protected void Button2_Click(object sender, EventArgs e)
{
  Session[search] = TextBox1.Text.ToString();
  Response.Write("<script>window.open('SearchResult.aspx','Body');</script>");
}


It works fine for me. The only problem I get is: If the user click the
submit button more than one time Control will not pass to the Page load of Other web page below is the code where the code should be transfer:
C#
protected void Page_Load(object sender, EventArgs e)
{
  Stt1;
  stt;
  stt;
}
Posted
Updated 2-May-12 5:11am
v2
Comments
AmitGajjar 3-May-12 0:57am    
some process gif icon can also be displayed instead of button after button click, so use can't do second click.

another option is to display popup page immediate when use click on the button so next click will not happen(so after first click control will transfer to popup page).

-Amit

1 solution

You can write splashscreen in BackgroundWorker thread to avoid the duplicate clicks by the user, till the data processing is over.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900