?
Solved

Asynchronously trigger details view on click of last treeview node

Posted on 2009-05-12
2
Medium Priority
?
379 Views
Last Modified: 2012-05-06
I have two ajax update panels on my page.  Update panel A contains a treeview where the first nodes are populated during the init routine of the page and the subsequent two levels are populated on demand when they are expanded.  

Update panel B contains some text boxes, labels, etc.  What I want to do is when I click the link of the lowest child node I want to post back the update panel, go to the DB and get the record (details) that corresponds to the final child node I clicked and populate the controls in update panel B with the details.  I thought I might just do this through javascript forcing an update of the panel B but I can't seem to get it to work, and I can't figure out where to put the code to hit the DB and populate the text boxes.

Help is appreciated.

0
Comment
Question by:jclemo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Expert Comment

by:DreamsTech
ID: 24371782
i feel Ajax Triggers can be helpful in this case. http://www.asp.net/Learn/ajax/tutorial-02-cs.aspx

In the updatePannel B : Put a trigger ,and and associate with the Last Node of ur tree.IF u r dynamically generating the nodes then also set the control id for the Trigger runtime to ur specified Tree Node.

On Clicking of Tree Node ,hit the DB as Normally ,fetch the data and populate the controls present in the Panel B.
<Triggers> <asp:AsyncPostBackTrigger ControlID="lnkNode" EventName="Click" /> </Triggers>

Open in new window

0
 

Accepted Solution

by:
jclemo earned 0 total points
ID: 24382253
did it with server side code after all.. thanks for help.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month11 days, 3 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question