P
pushpadant
Hi,
I have one master page which has some table inside one of the <td> i
have my contentplaceholder.
on the <head> tag of the master page i have specified link to a global
CSS (stylesheet.css) file.
On my content page i have a textbox inside the contentplaceholder.
What i want is my all content page to use the same CSS file
(stylesheet.css).
If i specify on the page load
//HtmlLink cssLink = new HtmlLink();
//cssLink.Href = "StyleSheet.css";
//cssLink.Attributes.Add("rel","stylesheet");
//cssLink.Attributes.Add("type", "text/css");
//Header.Controls.Add(cssLink);
It works fine.
But this i will have to include in all my content pages, so if in case
if i want any other stylesheet file to be global, i will have to modify
code in all my content pages.
Can anybody suggest how can i specify a css file in master and inherit
that in all my content pages.
Thnx
Pushpadant
I have one master page which has some table inside one of the <td> i
have my contentplaceholder.
on the <head> tag of the master page i have specified link to a global
CSS (stylesheet.css) file.
On my content page i have a textbox inside the contentplaceholder.
What i want is my all content page to use the same CSS file
(stylesheet.css).
If i specify on the page load
//HtmlLink cssLink = new HtmlLink();
//cssLink.Href = "StyleSheet.css";
//cssLink.Attributes.Add("rel","stylesheet");
//cssLink.Attributes.Add("type", "text/css");
//Header.Controls.Add(cssLink);
It works fine.
But this i will have to include in all my content pages, so if in case
if i want any other stylesheet file to be global, i will have to modify
code in all my content pages.
Can anybody suggest how can i specify a css file in master and inherit
that in all my content pages.
Thnx
Pushpadant