Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 30765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T13:29:57+00:00 2026-05-10T13:29:57+00:00

Is it possible to access an element on a Master page from the page

  • 0

Is it possible to access an element on a Master page from the page loaded within the ContentPlaceHolder for the master?

I have a ListView that lists people’s names in a navigation area on the Master page. I would like to update the ListView after a person has been added to the table that the ListView is data bound to. The ListView currently does not update it’s values until the cache is reloaded. We have found that just re-running the ListView.DataBind() will update a listview’s contents. We have not been able to run the ListView.DataBind() on a page that uses the Master page.

Below is a sample of what I wanted to do but a compiler error says

‘PeopleListView does not exist in the current context’

GIS.master – Where ListView resides

...<asp:ListView ID='PeopleListView'... 

GISInput_People.aspx – Uses GIS.master as it’s master page

GISInput_People.aspx.cs

AddNewPerson() {     // Add person to table     ....      // Update Person List     PeopleListView.DataBind();     ... } 

What would be the best way to resolve an issue like this in C# .Net?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T13:29:58+00:00Added an answer on May 10, 2026 at 1:29 pm

    I believe you could do this by using this.Master.FindControl or something similar, but you probably shouldn’t – it requires the content page to know too much about the structure of the master page.

    I would suggest another method, such as firing an event in the content area that the master could listen for and re-bind when fired.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can we access an element of a content page from master page using JavaScript?
Is it possible to access the previous element generated in a list comprehension ?
Is it possible to do indexed element access in JPQL like in HQL :
Does anybody know if it is possible to access and manipulate an element in
I have a SPList object and use SPList.Items to get the SPListItemCollection. From this
Possible Duplicate: question about missing element in array decrease runtime to O(n) An array
I have draggable elements which can be dropped in droppable areas. If an element
I have a big 2-dimensional array A , and also a flat array B
I have the following xsl stylesheet: <xsl:stylesheet xmlns=http://www.w3.org/1999/xhtml xmlns:xsl=http://www.w3.org/1999/XSL/Transform> <xsl:output method=xml encoding=utf-8/> <xsl:template match=/>
I have this code: (defparameter fc #\F) (defparameter bc #\B) (defparameter gap #\G) (defun

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.