Solved

TreeView in site master refresh when page data changes

Posted on 2014-03-01
2
630 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
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:charlesbaldo
ID: 39897797
Thank You
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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

911 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

16 Experts available now in Live!

Get 1:1 Help Now