Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to catch onclick on treeview inside update panel  with (onCollapse & on Expand trigger) on update panel triggers ,

Posted on 2011-02-13
4
Medium Priority
?
559 Views
Last Modified: 2012-05-11
I have a treeview inside an ajax update panel with ONCollapse & onExpand to trigger the update panel. This is in the masterpage and when clicked i trigger with delegate the inside page, but since i made the update panel, i cant catch the onclick event. I need the treeview on the update panel because i keep its state for retaining the Expanded/Collapsed through the website
public delegate void mstDelegate(object sender, System.EventArgs e);
    public partial class eshop_en : System.Web.UI.MasterPage
    {
        SqlConnection connection10 = new SqlConnection();
        SqlConnection connection100 = new SqlConnection();
        SqlConnection connection200 = new SqlConnection();
        SqlConnection connection300 = new SqlConnection();

        public string[] op = new string[30];

        private string slectedValue;
        public string SlectedValue
        {
            get { return slectedValue; }
            set { slectedValue = value; }
        }
        public event mstDelegate TreeViewEvent;
       
        protected void Page_Load(object sender, EventArgs e)
        {

Open in new window

0
Comment
Question by:rodojohn
[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
4 Comments
 
LVL 6

Accepted Solution

by:
kswathi earned 2000 total points
ID: 34886195
0
 

Author Comment

by:rodojohn
ID: 34886213
thanks kswathi i ll look it up, although i believe this solution causes postback wich i want only on the Onclick and not in expand/collapse
0
 
LVL 19

Expert Comment

by:Amandeep Singh Bhullar
ID: 35906827
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

The most up-to-date version of this article is on my Blog https://iconoun.com/blog/
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

598 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