title: clear the textbox after redirect to a download page
body: <p>i have 2 pages. main.aspx and download.aspx
  page_load at download.aspx is to download a file
  textbox and download button at main.aspx
  -no function at page_load
  -button redirect to download.aspx
  -textbox cannot be left blank.</p>
  
  <p>after i filled the textbox and press the button, the page remain at main.aspx and file is downloaded from download.aspx.
  now the problem is, how can i clear the textbox after i press the download button?</p>
  
  <p>I tried:</p>
  
  <ol>
  <li><code>this.Textbox1.Text = "";</code> before and after the redirect.</li>
  <li><code>ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "document.getElementById('Textbox1').value =''", true);</code> before and after the redirect</li>
  <li><code>Response.Redirect("main.aspx);</code> after <code>Response.Redirect("download.aspx");</code></li>
  <li><code>onclientclick = "validation()"</code></li>
  </ol>
  
  <p>function validation() {
          document.getElementById('TextBox1').value= "";
      }</p>
  
  <p>remember i have the validation, so 4. cannot work.</p>
  
  <pre><code>5. 
  
      OnClientClick ="document.forms[0].target = '_blank';"/&gt;
  
            Response.Redirect(”download.aspx”,false);
          Textbox1.Text="";
  
  6. Textbox1.EnableViewState = false;
  </code></pre>
  
  <p>7.button clicked, redirect to main2.aspx, pageload at main2.aspx redirect to download.aspx. but after i clicked the button at main.aspx, the file is downloaded, but the page is still remains at main.aspx.</p>
  
  <p>none of the method above is working, what else can i try? and what is the problem? why the textbox cannot set to blank?</p>
  
  <p>main.aspx</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
  
  }
  
  protected void Button1_Click(object sender, EventArgs e)
  {
     this.TextBox1.Text = "";
     Response.Redirect("download.aspx");
     this.TextBox1.Text = "";
  }
  </code></pre>
  
  <p>download.aspx</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
     string reportPath = "C:\\form.pdf";
  
     Response.ContentType = "appplication/pdf";
     Response.AppendHeader("Content-Disposition", "attachment; filename=form.pdf");
     Response.TransmitFile(reportPath);
     Response.End();
  }
  </code></pre>