Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 23rd, 2007, 06:21 PM
Authorized User
 
Join Date: Apr 2007
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Event order problem with TreeView

Hi all,

I have a problem with the TreeView and PlaceHolder controls. I have a TV that is populating a PH with a UserControl based on the selection.

The UC registers some JavaScript when it loads to do a bunch of client-side processing that I need.

Here is the problem... When the TreeView changes (a new node is selected) the Page_Load fires before the SelectionNodeChanged event. This means that the old UC entered in the PH is registering its client script, and the subsequent calls to do the same are ignored.

Is there any way to either:
1) Test the TV to see if it is in the process of changing (ala IsSelectionChanging or something to that effect).
2) Remove a client script once it is registered? These things are keyed, and it seems that until the page is actually pushed, there should be a way to dig in a dump the value from the ClientScriptManager, but I cannot find a way in to do that.

Any input GREATLY appreciated!

Cheers,

Chris
  #2 (permalink)  
Old April 25th, 2007, 12:26 PM
Authorized User
 
Join Date: Apr 2007
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Does ANYONE have ANY input on this... it is really killing me and I am just stuck. I'd rather not have to redesign the whole UI, especially if there is some way around it.

Thanks in advance for any comments!

Chris


Similar Threads
Thread Thread Starter Forum Replies Last Post
TreeView and SiteMap Node Order robzyc ASP.NET 1.0 and 1.1 Basics 0 May 19th, 2008 04:27 AM
Event order miltonsnider ASP.NET 2.0 Professional 0 February 9th, 2007 09:56 AM
Problem with Treeview amor1980 ADO.NET 1 May 17th, 2006 06:26 AM
TreeView Problem Medes C# 2005 0 April 23rd, 2006 07:20 AM
Page Base Load event order frayed_edge BOOK: ASP.NET Website Programming Problem-Design-Solution 3 March 4th, 2004 08:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.