473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Page "skins"

A web site I am working on is built completely in classic ASP, and allows
the user to choose different "skins" for the site. The term "skin" being
used very generically. When a user selects a Skin it controls what
stylesheet is sent to their web browser, and also changes some images that
display.

For example, in a classic ASP page we may have the following:

## BEGIN CODE ##
<img src="/images/<%= UserSkin %>_logo.jpg">
## END CODE ##

What would be the best way to convert these pages to ASP.NET, and use an OOP
approach?

Any help would be appreciated.

Thanks.
Nov 19 '05 #1
4 1541
Russ Nemhauser has a skin / theme framework along with a explanatory
slides here: http://www.nemhauser.com/demo/themes

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 2 Feb 2005 11:48:43 -0500, "Shawn Berg" <sh***@saeweb.com>
wrote:
A web site I am working on is built completely in classic ASP, and allows
the user to choose different "skins" for the site. The term "skin" being
used very generically. When a user selects a Skin it controls what
stylesheet is sent to their web browser, and also changes some images that
display.

For example, in a classic ASP page we may have the following:

## BEGIN CODE ##
<img src="/images/<%= UserSkin %>_logo.jpg">
## END CODE ##

What would be the best way to convert these pages to ASP.NET, and use an OOP
approach?

Any help would be appreciated.

Thanks.


Nov 19 '05 #2
Thanks for the link, Scott. That URL is producting a 500 error right now,
but I'll keep checking back to see if it comes back up.

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:gh********************************@4ax.com...
Russ Nemhauser has a skin / theme framework along with a explanatory
slides here: http://www.nemhauser.com/demo/themes

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 2 Feb 2005 11:48:43 -0500, "Shawn Berg" <sh***@saeweb.com>
wrote:
A web site I am working on is built completely in classic ASP, and allowsthe user to choose different "skins" for the site. The term "skin" being
used very generically. When a user selects a Skin it controls what
stylesheet is sent to their web browser, and also changes some images thatdisplay.

For example, in a classic ASP page we may have the following:

## BEGIN CODE ##
<img src="/images/<%= UserSkin %>_logo.jpg">
## END CODE ##

What would be the best way to convert these pages to ASP.NET, and use an OOPapproach?

Any help would be appreciated.

Thanks.

Nov 19 '05 #3
For some reason none of the other replies to you can be read by me today but
I would encourage you to get started with ASP.NET 2.0 and learn about its
support for skins, themes and master pages.

--
<%= Clinton Gallagher
METROmilwaukee "Regional Information Services"
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/

"Shawn Berg" <sh***@saeweb.com> wrote in message
news:uM****************@TK2MSFTNGP12.phx.gbl...
A web site I am working on is built completely in classic ASP, and allows
the user to choose different "skins" for the site. The term "skin" being
used very generically. When a user selects a Skin it controls what
stylesheet is sent to their web browser, and also changes some images that
display.

For example, in a classic ASP page we may have the following:

## BEGIN CODE ##
<img src="/images/<%= UserSkin %>_logo.jpg">
## END CODE ##

What would be the best way to convert these pages to ASP.NET, and use an OOP approach?

Any help would be appreciated.

Thanks.

Nov 19 '05 #4
I will look into that, but I really have to use something that is available
and not in beta. What I'd like to do is still allow the graphics designer to
generate the pages and HTML, and just put "[skin]" in the HTML anywhere the
skin name has to be written out. For example:

## BEGIN CODE ##
<html>
<body>
<h1>Hello, world</h1>
<img src="/images/[skin]_logo.jpg">
</body>
</html>
## END CODE ##

It would be nice if in an some event in my base page class I could somehow
replace all instances of "[skin]" in the HTML with the skin name the user
has selected. I know if I set all of these tags to "runat=server" I could do
this, but then I also have to recompile everytime I add one, etc., and
changes will not be easily handled by someone that's not a developer.

Shawn

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:#m**************@TK2MSFTNGP14.phx.gbl...
For some reason none of the other replies to you can be read by me today but I would encourage you to get started with ASP.NET 2.0 and learn about its
support for skins, themes and master pages.

--
<%= Clinton Gallagher
METROmilwaukee "Regional Information Services"
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/

"Shawn Berg" <sh***@saeweb.com> wrote in message
news:uM****************@TK2MSFTNGP12.phx.gbl...
A web site I am working on is built completely in classic ASP, and allows the user to choose different "skins" for the site. The term "skin" being
used very generically. When a user selects a Skin it controls what
stylesheet is sent to their web browser, and also changes some images that display.

For example, in a classic ASP page we may have the following:

## BEGIN CODE ##
<img src="/images/<%= UserSkin %>_logo.jpg">
## END CODE ##

What would be the best way to convert these pages to ASP.NET, and use an

OOP
approach?

Any help would be appreciated.

Thanks.


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Simon John | last post by:
I'm writing my 2nd large wxPython program, and after the problems I found doing the first's layout in code, I'd like to look at using a 'WYSIWYG' IDE, like VisualStudio does for MFC. I've tried...
1
by: Claus Konrad | last post by:
Hi Any good idea on how to obtain a functionality like the Cascating Style Sheet (css) provides to WebApplications when doing a WindowsApp? I want to associate an external "document" to allow...
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
0
by: Emil Christopher Melar | last post by:
I wanted to use App_Theme, because then I might have some automation when it comes to not hard coding paths for the css. And as you know, you know that mozilla and IE renders differently, and...
4
by: jobs | last post by:
I'm running vs2005 and asp.net framework 2.0 I thought adding the new preset them was just adding it to the directive: <%@ Page Language="VB" Theme="BasicBlue" AutoEventWireup="false"...
2
by: DC | last post by:
Hi, I designed many usercontrols and some webcontrols and I using css- classes to style elements in these controls. I now have the requirement to use these controls in a different webproject...
5
by: Faizmysore | last post by:
This code works good in IE, function multiuser() { document.frmOpenInteraction1.Create.disabled=true; document.frmOpenInteraction1.hidmultiuser.value="Yes"; var r =...
3
by: Tamer Ibrahim | last post by:
Hi, I want to mimic the "Page Options" existing on the www.msn.com especially the change color feature on my site. Any helpful resources describe the idea of that will be most appreciated. Thank...
2
polymorphic
by: polymorphic | last post by:
I have a javascript function which I am trying to call in an ASP.NET page but I receive the following error: "BC30456: 'FixComboHeight is not a member of 'ASP.default_aspx" Javascript Function:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.