sam

sam

  • NA
  • 202
  • 0

Redirect website in iframe

Aug 24 2010 9:16 PM
Ok,i got iframe code here:
<iframe src="http://google.com"></iframe>

And the following back code:
[code]
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("http://www.google.com/search?hl=en&q=" + TextBox1.Text.ToString() + "");
}
[/code]
The back code runs as a new page in browser,where keyword entered in TextBox1 redirect to new google page to search for the keyword entered in TextBox1.

Now i want the back code function runs on the iframe,where the same function runs on the iframe.

Any ideas?

Answers (9)