473,563 Members | 2,884 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Programmaticall y 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 programmaticall y, etc. But how do you
edit or create a theme programmaticall y? 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 2211
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 programmaticall y
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
2840
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 loop through all the forms in a database and pull information about the form (controls and properties). We would need to do the same in our VB.NET...
2
2264
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
2598
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 help. TK
5
15283
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 works fine, however programmatically, while the grid will display data that exsists in the database, any operation on the data (...
1
7994
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 run the app, the breakpoint is never hit. Of course my theme is not being applied. The above procedure works fine for any content page, but...
1
7283
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 implements ITemplate and repopulate the Template properters of TemplateField in OnInit. And I am DataBinding by getting a DataTable from my db provider...
1
6371
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 more than one sites exist on the server. Now, what I would like to do is set the ASP.NET version to 2.0 if it defaults to an earlier version (more...
1
1550
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, because of the page life cycle. What would be the best way to implement this? Currently I have all my pages inherit from a base page where I...
1
1780
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. These classes are used by the ASP.NET parser and runtime ... " (from http://msdn.microsoft.com/en-us/library/system.web.ui.pagetheme.aspx). My...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7885
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. ...
0
8106
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...
0
7948
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...
0
6250
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...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
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...
0
3642
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...
1
2082
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

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.