Solved

Asynchronously trigger details view on click of last treeview node

Posted on 2009-05-12
2
366 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Run time Error 4 34
SQL Exceptions 3 35
C# MVC and a global static factory that never dies 4 45
Having problem getting this to work 2 17
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

932 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now