Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tree View and IFrame 2

Status
Not open for further replies.

vinidel

IS-IT--Management
Jan 23, 2004
78
0
0
US
Hi All,

I am using IE Web control Treeview. And I am also using Iframe on the same .aspx page. Now my Iframe refers to other .aspx page whenever user clicks on one of the various nodes of Treeview.

This is how my Iframe loads LessonsGrid.aspx.aspx page. I pass the value of Treeview node user clicks on.

nodeGroup.NavigateUrl = "LessonsGrid.aspx?GrpID=" & nodeGroup.ID

nodeGroup.Target = "doc"

Note: doc is the name of iFrame.

Now my iFrame displays this LessonsGrid.aspx page only when user clicks on one of the node on Tree view. But when my main page opens I want my IFrame to display by default LessonsGrid.aspx page.

How can I do this ?

Any help will be appreciated.

Thanks.
 
just set
Code:
src="LessonsGrid.aspx"

for your iframe, either in the html or by using
Iframe1.attributes.add("src", "LessonsGrid.aspx") in your code-behind.
 
wow !

How can I be so ignorant ? :)

Thanks dace, I really appreciate your sweet and quick response.

 
Well for sure you helped me.
But I am not sure how valuable the solution was.

Anyway, I will give you a star, atleast you saved my time by providing the solution.

Thanks again !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top