473,729 Members | 2,376 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Master Pages - Updating content without full page refresh?

Rob
Hi,

I have a master page that contains a table layout. The contentplacehol der is
located in one of the table cells. With frames technology it was possible
for hyperlinks to load the linked pages into a frame without having to
reload any other frames.

Is it possible to replicate this kind of behaviour using master pages and
content pages? In other words, I want only the cell that contains the
contentplacehol der to refresh when the appropriate menu items are selected,
rather than the entire masterpage. I don't think using an AJAX update panel
in the master page would work.

Thanks,
Rob

Jun 18 '07 #1
4 18002
You could still use frames (*dons flame suit* :) ), but other than that
it'll need to be an AJAX solution.

"Rob" <r_******@ozema il.com.auwrote in message
news:e%******** ********@TK2MSF TNGP05.phx.gbl. ..
Hi,

I have a master page that contains a table layout. The contentplacehol der
is located in one of the table cells. With frames technology it was
possible for hyperlinks to load the linked pages into a frame without
having to reload any other frames.

Is it possible to replicate this kind of behaviour using master pages and
content pages? In other words, I want only the cell that contains the
contentplacehol der to refresh when the appropriate menu items are
selected, rather than the entire masterpage. I don't think using an AJAX
update panel in the master page would work.

Thanks,
Rob

Jun 18 '07 #2
"Rob" <r_******@ozema il.com.auwrote in message
news:e%******** ********@TK2MSF TNGP05.phx.gbl. ..
I have a master page that contains a table layout. The contentplacehol der
is located in one of the table cells. With frames technology it was
possible for hyperlinks to load the linked pages into a frame without
having to reload any other frames.
Not natively, though Ajax would certainly do what you require.

One of the commonest misconceptions about MasterPages are that they are
somehow the ASP.NET 2 equivalent of framesets - they aren't at all.

In fact, a MasterPage is really nothing more than a UserControl.
--
http://www.markrae.net

Jun 18 '07 #3
Rob
Thanks for your response.

I've tried placing an AJAX update panel around the contenplacehold er in the
mastersheet, with menu items set as triggers. This doesn't seem to have the
desired effect though. Is anybody able to offer any advice on how I could
achieve this using AJAX.

Thanks,
Rob

"Mark Rae" <ma**@markNOSPA Mrae.netwrote in message
news:uv******** ******@TK2MSFTN GP03.phx.gbl...
"Rob" <r_******@ozema il.com.auwrote in message
news:e%******** ********@TK2MSF TNGP05.phx.gbl. ..
>I have a master page that contains a table layout. The contentplacehol der
is located in one of the table cells. With frames technology it was
possible for hyperlinks to load the linked pages into a frame without
having to reload any other frames.

Not natively, though Ajax would certainly do what you require.

One of the commonest misconceptions about MasterPages are that they are
somehow the ASP.NET 2 equivalent of framesets - they aren't at all.

In fact, a MasterPage is really nothing more than a UserControl.
--
http://www.markrae.net
Jun 19 '07 #4
"Rob" <r_******@ozema il.com.auwrote in message
news:e6******** ******@TK2MSFTN GP03.phx.gbl...
I've tried placing an AJAX update panel around the contenplacehold er in
the
mastersheet, with menu items set as triggers. This doesn't seem to have
the
desired effect though. Is anybody able to offer any advice on how I could
achieve this using AJAX.
No, that's not what I meant - you certainly can't do that.

What you would need to do is to redesign / rewrite the content page in
question so that it used Ajax internally.

However, you really do need to get out of the mindset of a frameset...

MasterPages don't change the content of the "main" frame or whatever - they
reload the entire page every time...
--
http://www.markrae.net

Jun 19 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
2404
by: multiformity | last post by:
So I have been working on an opensource project for a while, and decided to really try to make it look better after focusing on the functionality most of this time. Up to now, I have simply used a standard ASPX page with minor modifications to it. All of my pages inherit from a "BasePage.cs" class, that handles common things like getting the user's information out of the session, determines if a page should or should not be password...
20
3369
by: M.Siler | last post by:
Let me first by saying I am NOT a .net programmer, but am very skilled with ASP, JavaScript, HTML, DHTML, Flash development. I've been reading through posts here about Frames vs. Master Pages and there seems to be the thought of why use Frames when you can use a Master Page? How does a Master Page only update a section without re-displaying the entire page. We have a site that has some small swf banners for lack of a better term that we...
8
4325
by: David Thielen | last post by:
Hi; Any strong arguments on using master pages vs frames when the header & footer are always the same and the main body is the part that keeps changing? -- thanks - dave
1
2949
by: LilC | last post by:
I'm creating an application that has a standard layout for all pages. The information that is displayed in the layout will be dynamic based on the user that is logged in. Thus when a page is browsed to, I need to check to see if the user has logged in or not. Then if they have logged in, I need to pull their information from the database to display in the header. In previous applications, I made use of a base web page that all the...
2
3320
by: news.sbcglobal.net | last post by:
I hope I can explain this well enough to understand. I have a master page that is used by almost all of the pages in my site. On the master page is a table. In one of the cells in this table, I have set the background to display an image that is located in a directory called "images" which is just off the root directory. Here's the problem: Any page that is not located in the root directory (where the master page is located) cannot...
11
12117
by: EagleRed | last post by:
I am writing an ASP.NET 2.0 application that uses master pages. I have some pages that must not be cached on the client. In ASP.NET 1.1 I achieved this using metatags: <meta http-equiv="Expires" content="0"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> This tags are part of the <headelement. Sample code that I have seen shows how to add metatags of the form:
8
6698
by: JT | last post by:
Hi, I have done a fair amount of style editing inline in ASP. I'm now using VS 2005 with a standard web project (not Web Application Project). This is my first foray into CSS in a style sheet and also my first true attempt at using master pages. I tried setting up a style sheet with a simple setting to float an image to the right and it had no effect on the image. Then, I tried putting the style code in my ASPX file as such,
2
3829
by: Argirop | last post by:
I have a page Default.aspx. Its first line is the following: <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="MyCompany.MyApp.default" Title="Untitled Page" %> The first line in MasterPage.master is the following: <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MyCompany.MyApp.masterpage" %>
3
2366
by: John Kotuby | last post by:
Hi all, Just wondering why this would happen. I had created a standalone ASPX page in which 5 controls are wrapped in an UpdatePanel. The idea is Control1 selection populates Control2 then Control2 populates Control3, all depending upon which selection the user makes in each contol. For example the Ctrl1 is a DataList. A selection there populates a 3rd party Grid Control. Selection of a Grid row populates a MultiView control. It was...
0
8917
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8148
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2680
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2163
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.