change the master page body color from different pages when they load in vb.net

background, master-pages, vb.net

Solution

Keep in mind that content holders can go anywhere in the page. It's possible to do something like this:

<div style="background-color:<asp:ContentPlaceHolder id="divColor" runat="server" />"></div>

And then in your page have this:

<asp:Content ID="divColorContent" ContentPlaceHolderID="divColor" Runat="Server">green</asp:Content>

Problem

I have like 10 aspx pages (junior_class_students1.aspx-...10.aspx). They all have the same master page in the back (class_students.master). Everytime i load a page i want the master page background-color to change, to the one that i can specify per page. so ...students1.aspx then .master ...students2.aspx then .master ...students3.aspx then .master how can this be achieved?

Original source