protected void Page_Load(object sender, EventArgs e){ string str = Request.QueryString["query"]; string str1="http://"+str; HtmlControl frame2 = (HtmlControl)this.FindControl("frame1"); frame2.Attributes["src"] = str1;}