473,408 Members | 2,839 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,408 software developers and data experts.

Programmatically edit/create Theme

In asp.net 2.0 you can apply custom themes based on a user profile,
etc. And you can change the theme programmatically, etc. But how do you
edit or create a theme programmatically? I am working on a content
management system where the user needs to be able to select fonts,
colors, etc. Right now I can only see how to let the user select from
a pre-defined set of themes.

In the old days, you could generate the css file from user input stored
in the db, and then upload this css file to the server. (this is an
authenticated user).

Is there any way to edit or generate a theme through the user interface?

Nov 19 '05 #1
2 2205
I should clarify: the user in this case is the site owner and the
theme he creates/edits would apply globally (for all users of the
site). In other words, think of it like .Text or blogger. I am NOT
talking about personalizing a certain user's interface. I am talking
about creating/editing a theme through a management interface like
blogger. Blogger lets you do this kind of thing by either selecting a
pre-defined theme or by editing the CSS directly. Just trying to
figure out if there is a less clunky way of doing that in 2.0.

Nov 19 '05 #2
Well, Themes might not be the right choice then. You can always programmatically
add elements to the head tag of the page (since in ASP.NET 2.0 that's a server
side control). Doing this in your master page would be a good choice.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I should clarify: the user in this case is the site owner and the
theme he creates/edits would apply globally (for all users of the
site). In other words, think of it like .Text or blogger. I am NOT
talking about personalizing a certain user's interface. I am talking
about creating/editing a theme through a management interface like
blogger. Blogger lets you do this kind of thing by either selecting a
pre-defined theme or by editing the CSS directly. Just trying to
figure out if there is a less clunky way of doing that in 2.0.


Nov 19 '05 #3

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

Similar topics

6
by: ALthePal | last post by:
Hi, I'm not sure if we are able to or even how to loop through the web forms in a VB.NET project during design time. In MSAccess we are able to go through the database -> forms collection and...
2
by: Just Me | last post by:
I'd like to create my own theme but do not know how to do that. Can someone direct me to a document or sample I could study?
2
by: TK | last post by:
What's the best way to edit web.config programmatically? I want to have an aspx page as a GUI for web admins to modify the roll-base security portion of the web.config(s) on a server. please...
5
by: Brian McClellan | last post by:
Just wondering if anyone has a simple example of creating a gridview completely programmatically, i'm not doing anything terribly sophisticated. When creating the gridview declaratively evertying...
1
by: Joey | last post by:
Hello, I have tried to programmatically set the theme for my master page by putting code in a "Page_PreInit" fuction in the master page's code behind. However, when I set a breakpoint there and...
1
by: Mark Stafford | last post by:
I am attempting to use a DetailsView control to view some data where the fields returned by the database are determined at runtime. I create the TemplateFields on the fly using a class that...
1
by: Superfreak3 | last post by:
We have a web application that will be installed as a virtual directory. It will either default to the Default Web Site or allow the choice of the site to which the vir. dir. will be installed, if...
1
by: Juan Romero | last post by:
Hi guys, I would like to setup a page's theme programmatically based on the user role. I would consider this to be a tipical scenario, yet I can't seem to be able to do this from my master page,...
1
by: Cramer | last post by:
According to the MSDN docs, we cannot programatically create our own themes or skins: "Page and control developers do not use the ControlSkinDelegate, ControlSkin, or PageTheme classes directly....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.