9
Answers

Redirect website in iframe

Ask a question
sam

sam

14y
11.3k
1
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)