Click here to Skip to main content
15,891,513 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how can i change the bg color of a master page from one of its child page programatically Pin
Jörgen Andersson1-Apr-09 4:56
professionalJörgen Andersson1-Apr-09 4:56 
GeneralRe: how can i change the bg color of a master page from one of its child page programatically Pin
souravghosh181-Apr-09 19:24
souravghosh181-Apr-09 19:24 
GeneralRe: how can i change the bg color of a master page from one of its child page programatically Pin
Jörgen Andersson1-Apr-09 20:22
professionalJörgen Andersson1-Apr-09 20:22 
GeneralRe: how can i change the bg color of a master page from one of its child page programatically Pin
Karthick_gc1-Apr-09 1:20
Karthick_gc1-Apr-09 1:20 
GeneralRe: how can i change the bg color of a master page from one of its child page programatically Pin
Jörgen Andersson1-Apr-09 1:25
professionalJörgen Andersson1-Apr-09 1:25 
GeneralRe: how can i change the bg color of a master page from one of its child page programatically Pin
Karthick_gc1-Apr-09 1:27
Karthick_gc1-Apr-09 1:27 
GeneralRe: how can i change the bg color of a master page from one of its child page programatically Pin
Jörgen Andersson1-Apr-09 1:36
professionalJörgen Andersson1-Apr-09 1:36 
AnswerRe: how can i change the bg color of a master page from one of its child page programatically Pin
Amit Sk Sharma1-Apr-09 2:13
Amit Sk Sharma1-Apr-09 2:13 
Put all Master page content in a div control with ID and runat="server"
inside form like :

Form opening TAG
DIV u will put
all page stuff
DIV close TAG
Form Close tag

and then use following in your content page code where u wish to change the bgColor for master page

CType(Me.Page.FindControl("ctl00$div1"), HtmlGenericControl).Style.Add("background-color", "Yellow")

where div1 is the DIV control ID in ctl00$div1

With Thanks & Regards
Amit Sk Sharma

Questionlabel color Pin
saravanan0531-Mar-09 21:07
saravanan0531-Mar-09 21:07 
AnswerRe: label color Pin
Christian Graus31-Mar-09 21:14
protectorChristian Graus31-Mar-09 21:14 
AnswerRe: label color Pin
dotnetmember31-Mar-09 21:20
dotnetmember31-Mar-09 21:20 
AnswerRe: label color Pin
Mogaambo31-Mar-09 21:36
Mogaambo31-Mar-09 21:36 
QuestionGet geographical location using IP address Pin
Ravi_2131-Mar-09 21:06
Ravi_2131-Mar-09 21:06 
AnswerRe: Get geographical location using IP address Pin
Christian Graus31-Mar-09 21:14
protectorChristian Graus31-Mar-09 21:14 
GeneralRe: Get geographical location using IP address Pin
Ravi_2131-Mar-09 21:15
Ravi_2131-Mar-09 21:15 
GeneralRe: Get geographical location using IP address Pin
Colin Angus Mackay31-Mar-09 22:12
Colin Angus Mackay31-Mar-09 22:12 
AnswerRe: Get geographical location using IP address Pin
jothsha27-May-11 0:37
jothsha27-May-11 0:37 
QuestionGrid view? Pin
Karthick_gc31-Mar-09 20:45
Karthick_gc31-Mar-09 20:45 
AnswerRe: Grid view? Pin
Christian Graus31-Mar-09 20:49
protectorChristian Graus31-Mar-09 20:49 
QuestionValidatorCalloutExtender not working in asp.net 3.0 version Pin
Deepml31-Mar-09 20:34
Deepml31-Mar-09 20:34 
Questionhi sunitha Pin
saravanan0531-Mar-09 20:26
saravanan0531-Mar-09 20:26 
AnswerRe: hi sunitha Pin
Abhijit Jana31-Mar-09 20:44
professionalAbhijit Jana31-Mar-09 20:44 
AnswerRe: hi sunitha Pin
Christian Graus31-Mar-09 20:48
protectorChristian Graus31-Mar-09 20:48 
GeneralRe: hi sunitha Pin
Blue_Boy31-Mar-09 21:23
Blue_Boy31-Mar-09 21:23 
GeneralRe: hi sunitha PinPopular
Mogaambo31-Mar-09 21:32
Mogaambo31-Mar-09 21:32 

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.