Author: DD85 | Posted on: 8/7/2009 4:07:28 AM | Views : 402

I've been playing around with masterpages, nested masterpages and various control events within this kind of structure.
Imagine this structure:
SiteMaster.master - the main master page with a single ContentPlaceHolder control
SubMaster.master - the child master page which names SiteMaster as its master, fills SiteMaster's ContentPlaceHolder and adds another ContentPlaceHolder for content pages
Content.aspx - various content pages with a single Content control to fill SubMasters's ContentPlaceHolder and names SubMaster as its master.

This is all fine.
On one of the content pages (Content1.aspx) I have a TextBox control - txtMessage. Its String value is exposed as a public, readonly property. On the same page, there exists, amongst other controls, a button with a PostBackUrl specified, linking to a second content page (Content2.aspx). On clicking the button, I'm taken to Content2.aspx just fine. In Content2.aspx I declare the p ...

Go to the complete details ...