Newbie Question

  • Thread starter Thread starter Meir Rotfleisch
  • Start date Start date
M

Meir Rotfleisch

HI

I would like to control the style of a web page as results of user
interaction (selects options from lists etc) . Can someone show me how to
access the Document object inside a code snippet something simple like
Button Event changes the background color of the page. I should be able to
extrapolate from there...

Regards

Meir
 
I didn't see anything for Page. For most Web controls have Background
property.


For page I can suggest following solution.
1)Create protected value that will hold the path of desired stylesheet
file.Let say protected string styleSheet
2) in HTML view enter something like this
<LINK HREF="<%=this.styleSheet%>" TYPE="text/css" REL="stylesheet">
3) in event handlers set the value of StyleSheet to the path of the file.
See if it works for you.
Shimon Simchowitz
 
Back
Top