Click here to Skip to main content
16,004,906 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Setting the Content page back ground color different from the master page back ground color Pin
Sujoy Upadhyay14-Jul-10 18:20
Sujoy Upadhyay14-Jul-10 18:20 
GeneralRe: Setting the Content page back ground color different from the master page back ground color Pin
Prosanta Kundu online14-Jul-10 18:37
Prosanta Kundu online14-Jul-10 18:37 
AnswerRe: Setting the Content page back ground color different from the master page back ground color Pin
Prosanta Kundu online14-Jul-10 18:36
Prosanta Kundu online14-Jul-10 18:36 
GeneralRe: Setting the Content page back ground color different from the master page back ground color Pin
Sujoy Upadhyay14-Jul-10 20:02
Sujoy Upadhyay14-Jul-10 20:02 
GeneralRe: Setting the Content page back ground color different from the master page back ground color Pin
Prosanta Kundu online14-Jul-10 20:38
Prosanta Kundu online14-Jul-10 20:38 
GeneralRe: Setting the Content page back ground color different from the master page back ground color Pin
Sujoy Upadhyay14-Jul-10 20:42
Sujoy Upadhyay14-Jul-10 20:42 
GeneralRe: Setting the Content page back ground color different from the master page back ground color Pin
Prosanta Kundu online14-Jul-10 20:48
Prosanta Kundu online14-Jul-10 20:48 
AnswerRe: Setting the Content page back ground color different from the master page back ground color Pin
raju melveetilpurayil14-Jul-10 21:38
professionalraju melveetilpurayil14-Jul-10 21:38 
Steve Holdorf wrote:
set it's back ground color in the body tag . Now that is fine for the Master page


change style tag with class, because it to difficult to override style tag from content page
for example in masterpage
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
    <style>
        .bodyClass
        {background-color:Red;}
        .conetntpage
        {background-color:White;}
    </style>
</head>

<body class="bodyClass";>
    <form id="form1" runat="server">
    <div>
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
        
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>


now in content Page PageLoad

public partial class contentpage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        System.Text.StringBuilder sb = new System.Text.StringBuilder();
        sb.Append("<script language=\"javascript\">");
        sb.Append("document.body.className=\"conetntpage\";");
        sb.Append("</script>");
        ClientScript.RegisterStartupScript(this.GetType(), "MyScript", sb.ToString());
    }
}



Hop this will help you
Raju.M

GeneralRe: Setting the Content page back ground color different from the master page back ground color Pin
Steve Holdorf15-Jul-10 6:19
Steve Holdorf15-Jul-10 6:19 
GeneralRe: Setting the Content page back ground color different from the master page back ground color Pin
Steve Holdorf15-Jul-10 7:48
Steve Holdorf15-Jul-10 7:48 
QuestionGet data from dropdownlist to Listbox using javascript Pin
SatyaKeerthi1514-Jul-10 4:23
SatyaKeerthi1514-Jul-10 4:23 
AnswerRe: Get data from dropdownlist to Listbox using javascript Pin
T M Gray14-Jul-10 5:24
T M Gray14-Jul-10 5:24 
GeneralRe: Get data from dropdownlist to Listbox using javascript Pin
SatyaKeerthi1514-Jul-10 19:23
SatyaKeerthi1514-Jul-10 19:23 
GeneralRe: Get data from dropdownlist to Listbox using javascript Pin
Sujoy Upadhyay14-Jul-10 20:06
Sujoy Upadhyay14-Jul-10 20:06 
GeneralRe: Get data from dropdownlist to Listbox using javascript Pin
Prosanta Kundu online14-Jul-10 20:45
Prosanta Kundu online14-Jul-10 20:45 
GeneralRe: Get data from dropdownlist to Listbox using javascript Pin
T M Gray16-Jul-10 6:18
T M Gray16-Jul-10 6:18 
Questionwant to know the idea regarding the Network Management System Project in asp.net Pin
Amit Spadez14-Jul-10 0:41
professionalAmit Spadez14-Jul-10 0:41 
AnswerRe: want to know the idea regarding the Network Management System Project in asp.net Pin
Peace ON14-Jul-10 1:00
Peace ON14-Jul-10 1:00 
AnswerRe: want to know the idea regarding the Network Management System Project in asp.net Pin
Not Active14-Jul-10 1:14
mentorNot Active14-Jul-10 1:14 
GeneralRe: want to know the idea regarding the Network Management System Project in asp.net Pin
Amit Spadez14-Jul-10 1:15
professionalAmit Spadez14-Jul-10 1:15 
AnswerRe: want to know the idea regarding the Network Management System Project in asp.net Pin
T M Gray14-Jul-10 5:13
T M Gray14-Jul-10 5:13 
QuestionForm authentication with static variable Pin
Tripathi Swati13-Jul-10 23:33
Tripathi Swati13-Jul-10 23:33 
AnswerRe: Form authentication with static variable Pin
Peace ON14-Jul-10 0:32
Peace ON14-Jul-10 0:32 
QuestionAJAX Control Pin
geeeeeeeetha13-Jul-10 21:01
geeeeeeeetha13-Jul-10 21:01 
AnswerRe: AJAX Control Pin
Prosanta Kundu online13-Jul-10 23:23
Prosanta Kundu online13-Jul-10 23:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.