Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

sqldatasource dal, wwwxxxenden, convert raid5 to raid 10 mdadm, apache force chunked, nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas, linux raid resync after reboot

Links

XODOX
Impressum

#1: Master Page Properties persist?

Posted on 2008-04-24 17:17:29 by SimpleMan75

If I have some Master Page properties, and assign them when the master page
first loads, knowing that I can access these property values in the current
Content pages, will these properties be persisted through every page, until
the browser is closed?

Report this message

#2: Re: Master Page Properties persist?

Posted on 2008-04-24 18:12:02 by Madhur

It depends where you emit the code for assigning these properties.
Different results for content page, master page.

--
Madhur

"Seth Williams" <sm@here.com> wrote in message
news:evhiQ5hpIHA.2188@TK2MSFTNGP04.phx.gbl...
> If I have some Master Page properties, and assign them when the master
> page first loads, knowing that I can access these property values in the
> current Content pages, will these properties be persisted through every
> page, until the browser is closed?
>
>

Report this message

#3: Re: Master Page Properties persist?

Posted on 2008-04-24 18:50:51 by SimpleMan75

It seems like each page load fires the page load event (non-postback) of the
Master Page

What I'm running into is that when I click a button on one page (which has
the properties loaded), I load a couple of sessions, and then
response.redirect to a second page.

In that second page's load event, I access one of the properties, but it is
'Nothing'. On further testing, apparently, the Page_Load of the content page
is actually firing BEFORE the Page_load event of the Master Page. So the
properties in the Master Page are not accessible to the content page

Once everything's loaded, I can access the properties at any time - no
problem

However, I need to access the Master Page's properties when the content page
is loaded

Is this possible, or am I missing something?



"Madhur" <sdf@df.com> wrote in message
news:80D5A1AF-F6A1-4C73-8436-5FEBF0F04315@microsoft.com...
> It depends where you emit the code for assigning these properties.
> Different results for content page, master page.
>
> --
> Madhur
>
> "Seth Williams" <sm@here.com> wrote in message
> news:evhiQ5hpIHA.2188@TK2MSFTNGP04.phx.gbl...
>> If I have some Master Page properties, and assign them when the master
>> page first loads, knowing that I can access these property values in the
>> current Content pages, will these properties be persisted through every
>> page, until the browser is closed?
>>
>>
>

Report this message

#4: Re: Master Page Properties persist?

Posted on 2008-04-24 21:37:07 by NoSpamMgbworld

In general, no.

The master page, while it seems like a common container in the designer, is
actually a type of user control, which means it has page scope. Even if all
of your pages use the same master, the properties are not global.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"Seth Williams" <sm@here.com> wrote in message
news:evhiQ5hpIHA.2188@TK2MSFTNGP04.phx.gbl...
> If I have some Master Page properties, and assign them when the master
> page first loads, knowing that I can access these property values in the
> current Content pages, will these properties be persisted through every
> page, until the browser is closed?
>
>

Report this message

#5: Re: Master Page Properties persist?

Posted on 2008-04-24 23:18:43 by Patrice

// Reference properties from a previous page.
cross-page postback overview site:msdn2.microsoft.com



"Seth Williams" <sm@here.com> wrote in message
news:%234lcetipIHA.1236@TK2MSFTNGP02.phx.gbl...
> It seems like each page load fires the page load event (non-postback) of
> the Master Page
>
> What I'm running into is that when I click a button on one page (which has
> the properties loaded), I load a couple of sessions, and then
> response.redirect to a second page.
>
> In that second page's load event, I access one of the properties, but it
> is 'Nothing'. On further testing, apparently, the Page_Load of the content
> page is actually firing BEFORE the Page_load event of the Master Page. So
> the properties in the Master Page are not accessible to the content page
>
> Once everything's loaded, I can access the properties at any time - no
> problem
>
> However, I need to access the Master Page's properties when the content
> page is loaded
>
> Is this possible, or am I missing something?
>
>
>
> "Madhur" <sdf@df.com> wrote in message
> news:80D5A1AF-F6A1-4C73-8436-5FEBF0F04315@microsoft.com...
>> It depends where you emit the code for assigning these properties.
>> Different results for content page, master page.
>>
>> --
>> Madhur
>>
>> "Seth Williams" <sm@here.com> wrote in message
>> news:evhiQ5hpIHA.2188@TK2MSFTNGP04.phx.gbl...
>>> If I have some Master Page properties, and assign them when the master
>>> page first loads, knowing that I can access these property values in the
>>> current Content pages, will these properties be persisted through every
>>> page, until the browser is closed?
>>>
>>>
>>
>
>

Report this message