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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic code to be called on clicking an image

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
We have a set of images that are created on a web form on start up (according to entries as read from a database).
When the page is first loaded we have the images listed down the left hand side (along with a line of text against each) - sort of like the makings of a tree view.
Within the scope of this generated ASP created page we want to create an event / code behind each of the images such that on clicking one we expand the tree-view (according to the image / text line clicked) and show the next level down of images and text lines.
Our problem that we seem to be facing is that when we start dynamically adding lines of text to our resultant page the lines are added at the top of the page and therefore do not get interpretted correctly by our browser.
We're basically looking at duplicating the effects of a tree-view within the scope of a navigation page.
Can anyone make any suggestions on this please ?
Thanks in advance
Steve
 
Hey Steve,

Is there a reason why you guys aren't using the tree view control? Only reason I ask is that the tree view control can do pretty much exactly what you want (images, expanding easily, etc.)

D'Arcy
 
Is there a treeview component within the ASP.Net web pages toolbox ?
Am I simply missing it ?
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top