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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top