Solved

TreeView in site master refresh when page data changes

Posted on 2014-03-01
2
624 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:charlesbaldo
2 Comments
 
LVL 16

Accepted Solution

by:
Easwaran Paramasivam earned 500 total points
Comment Utility
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:charlesbaldo
Comment Utility
Thank You
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

15 Experts available now in Live!

Get 1:1 Help Now