Hi,
mayankajax:
now in what way should i design my master page so that, i can just put contents in that particular division in my child pages...
I would suggest that you can create more than one themes, then use different themes for different pages.
You can make all the themes have the same style of the parts except the contents of div with id 'left_side', so which can make contents particular division in all the content pages.
Or , if you want to change the contents of div with id 'left_side, rest all will b same in all the pages. you can set the div 'left_side's runat is server, than you can change the div's style in the page's codebehind:
For example:
<div id="divcontent" style="width: 304px; height: 100px" runat=server ></div>
1, then export the div as a property in the master page's codebehind:
public HtmlControl div
{
get
{
return this.divcontent;
}
}
2. the master type in the content page:
<%@ Page Language="C#" MasterPageFile="~/Masterpage/Case1/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Masterpage_Case1_Default" Title="Untitled Page" %>
<%@ MasterType VirtualPath="~/Masterpage/Case1/MasterPage.master" %>
3. change the div's stype in the content page's codebehind:
this.Master.div.Attributes.Add("background-color", "#FFFF00");
Hope it helps.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Yours sincerely,
Amanda Wang
Microsoft Online Community Support