I am trying to develop a simple web part in VS that will pull data from a text box, construct a URL with the data and open a new tab using OnClientClick="aspnetForm.target ='_blank';"
and using this on the code behind:
protected void Button1_Click(object sender, EventArgs e)
{
String myString = TextBox1.Text;
Response.Redirect("http://..." + myString + "...");
}
This works, but it will only work once from my site without a page refresh. What is the best way to either allow multiple redirects without refresh or just simultaneously refresh the page so the user can enter and search a different parameter?