Another problem is that HtmlControl frame1 = (HtmlControl)this.FindControl("ifrCache"); return null but i add runat=server to ifrCache so i can use it like server control and it works. The same problem still persists. I do not know how to access to controls in iframe? Is it javascript solution? :((