How would I go about resizing a div from a page to it’s master page?
Making the div a server side control doesn’t seem to be an option as all applied css breaks from the name change and I cannot modify the css file.
I have tried the solution below from Hunter using the MasterType and then creating a property in my base master page, but my content page does not see the public property.
I have three files involved listed in their hierarchal structure.
1) Base master page where div resides
2) Master page for section of site
3) Content page for which I need to change the div in #1
you could trying setting the pages
MasterType, which will let you manipulate members on theMasterPagedirectly from the pageSo in your master page you could add Property like this:
Then on your page you can add this to the .aspx content below the
<@ Pageline:which is the namespace and class of your Master page.
Then on the pages code behind you should be able to set that Property like so:
More on the MasterType directive: http://msdn.microsoft.com/en-us/library/ms228274(v=VS.90).aspx