Solved

TreeView in site master refresh when page data changes

Posted on 2014-03-01
2
646 Views
Last Modified: 2014-03-01
I have a stock standards asp.net 4.5 web forms application.

I am using master pages. in site.master I have a TreeView that I am using for navigation. It changes when data events happen in the pages.  in site.master.cs I have a

 private void BindNavTree() {}  method.  I want to call this method whenever data changes in any of the pages.

Any Help is appreciated

Thanks
0
Comment
Question by:Charles Baldo
[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 16

Accepted Solution

by:
Easwaran Paramasivam earned 500 total points
ID: 39897747
It should be called if it is defined in master page correctly.

Otherwise there is another option..

You create a class file which derive  from Page class.

Example:


public class MyPage : Page
{

 //define the events and method here

//Have the method here...
private void BindNavTree() {}


}


then keep the class as your base page.


your aspx.cs

protected class test : MyPage
{


}


For your reference: http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-do-i-make-custom-pages

http://www.devexpertise.com/2009/03/25/aspnet-tiptrick-use-a-base-page-class-for-all-application-pages/
0
 

Author Closing Comment

by:Charles Baldo
ID: 39897797
Thank You
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

688 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