Click here to Skip to main content
15,940,550 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using an IFrame, and from this IFrame I want to redirect to another page.when i click a asp:treeview node using to do..
Sergey Alexandrovich Kryukov 8-Aug-12 2:10am    
Think of iFrame as of a separate HTML page...
ZurdoDev 8-Aug-12 10:20am    
Use javascript and set the src of the iframe.

1 solution


i hope that below code useful..

document.getElementById('treeiframe').src = "Sample.aspx?CreatedBy=" + document.getElementById('<%=this.HCreatedBy.ClientID%>').value + "&UserType=" + document.getElementById('<%=this.HUserType.ClientID%>').value + "&TimeZoneID=" + document.getElementById('<%=this.HTimeZoneID.ClientID%>').value;

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900