Ok I know a lot of asp but not a lot of asp.net and C# so please bear
with me. I need some help converting..
In my asp project I have some styles in my head tag that change
according to a parameter passed in in the query string - fontfamily
is the variable that I store the value of the parameter in within my
asp code, and then I place that into the styles see below..
<style type="text/css">
a:link,a:visite d,a:hover,a:act ive{font...
..ebartext{font-family:<%=fontf amily%>;...
..price{font-family:<%=fontf amily%>;fon...
..textfont{font-family:<%=fontf amily%>;...
..{font-family:arial,sa ns-serif;font-si...
table{backgroun d-color:transpare nt;}
..ebaylogo{posi tion:absolute;z-index:40...
..ebarlogo{posi tion:absolute;z-index:40...
..ebarlogotext{ font-family:arial,sa ns-s...
..ebarcontainer {position:absol ute;left:...
..clipdiv{posit ion:absolute;le ft:0px;to...
</style>
I am not sure how to change my stylesheet from within c# and replace
it with a value passed in as a parameter.
I have gotten the value into the string variable fontfamily, but not
sure how to place that within the style??
//in my c# code default.aspx.cs I get the parameter passed in fine..
string fontfamily = "" + Request.QuerySt ring["fontfamily "];
Can anyone help?
with me. I need some help converting..
In my asp project I have some styles in my head tag that change
according to a parameter passed in in the query string - fontfamily
is the variable that I store the value of the parameter in within my
asp code, and then I place that into the styles see below..
<style type="text/css">
a:link,a:visite d,a:hover,a:act ive{font...
..ebartext{font-family:<%=fontf amily%>;...
..price{font-family:<%=fontf amily%>;fon...
..textfont{font-family:<%=fontf amily%>;...
..{font-family:arial,sa ns-serif;font-si...
table{backgroun d-color:transpare nt;}
..ebaylogo{posi tion:absolute;z-index:40...
..ebarlogo{posi tion:absolute;z-index:40...
..ebarlogotext{ font-family:arial,sa ns-s...
..ebarcontainer {position:absol ute;left:...
..clipdiv{posit ion:absolute;le ft:0px;to...
</style>
I am not sure how to change my stylesheet from within c# and replace
it with a value passed in as a parameter.
I have gotten the value into the string variable fontfamily, but not
sure how to place that within the style??
//in my c# code default.aspx.cs I get the parameter passed in fine..
string fontfamily = "" + Request.QuerySt ring["fontfamily "];
Can anyone help?
Comment