473,672 Members | 3,515 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1559
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.c om>
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.o detocode.com> wrote in message
news:gh******** *************** *********@4ax.c om...
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.c om>
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.c om> wrote in message
news:uM******** ********@TK2MSF TNGP12.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=serv er" 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*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message
news:#m******** ******@TK2MSFTN GP14.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.c om> wrote in message
news:uM******** ********@TK2MSF TNGP12.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
6489
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 a few that I found, wxGlade is probably the best, although it seems to be not 100% WYSIWYG (like the widgets in the preview are not much like the final program), wxDesigner has a horrid GUI for a GUI designer! VisualWX gave me the 'now what?'...
1
1330
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 for (later) modification of the fonts, sizes etc. used throughout the application to allow for a consistent "look and feel"... Any good suggestions on how this could be made?
9
2817
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 facing. Please please help me to solve this as soon as possible. So here we go ... I am not able to take the screen shot of the windows form based "Smart
0
1725
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 they require different style sheets: Solution is as follows: <link rel="stylesheet" href="default.css" type="text/css" media="all" title="Default styles" />
4
3761
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" CodeFile="x.aspx.vb" Inherits="_Replicator" ValidateRequest="false" MaintainScrollPositionOnPostback="true" %> I'm getting:
2
1050
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 which has central stylesheets to which I must attach. I.e. I intended to change the style in the .css file containing the definition for cssclass="xyz-style", but now I must change all occurrences (some for the webcontrols in codebehind) to...
5
6460
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 = showModalDialog('popup.htm','NEW', 'dialogWidth:400px;dialogHeight:155px;dialogLeft:200px;center:1;help: no; resizable: no; status: no; scroll: no;'); window.document.frmOpenInteraction1.ticket.checked=false;...
3
1528
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 you.
2
7205
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: <script type="text/javascript"> function FixComboHeight() { var combo =<%=cbMSDivision.ClientID%>;
0
8945
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8846
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8697
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7475
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4242
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2837
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2093
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1837
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.