C# - How To Change Theme Via Web.Config On The Fly

Sep 29, 2010

I have a web-application with more than 5 themes. Each themes covers a completely different style for different customers. whenever we publish a new version of our application we send it for all of customers.

We specify theme in web.config file in <Page> tag. like

<page theme="Theme1" /> // or Theme2 for second customer.

with this approach we easily change the style of application from each other without writing codes which needs a new publish for each one.

With changing the theme="Theme1". nothing change and we didn't write a code in application , so why changing theme don't change the theme and we need a new publish?

we want to change it in web.config or somewhere else and with changing it the theme change without needing a new publish for each one.

Update :

I Publish Once and then copy the published version for each customer (5 times) then in each web.config file I change the theme="CustomerTheme". but only the theme which was active in publish process is usable in all of 5 versions and other 4 themes are un-usable Actually the main question is that why changes in Web.Config need a different publish while it is XML and do not need a complie. I should Add this note that, App_Theme include all of 5 themes so that all of them Compiles and are ready to use

This is the way I publish the application

Photo Link

Update 2

here IFound the exact problem reported by someone else. he resolve the problem but I can't underestand how he resolved this Issue.

View 2 Replies


Similar Messages:

Getting The Current Theme From The Web.config?

Sep 25, 2010

I need to read the theme defined in the web.config. I've had a play with the following:

Label1.Text = System.Configuration.ConfigurationManager.AppSettings["theme"];

View 6 Replies

Setting The Page Theme Outside Of The Web.config?

Oct 16, 2010

I'm using a flash app to upload images (EAFlashUpload - http://www.easyalgo.com/eaflashupload.aspx) which works great, but there's a problem.For reasons beyond my understanding, if a theme (page theme = "white") is declared in the web.config, it doesn't work correctly; even if there is nothing in the theme folder at all! Oddly though, it's happy if the theme is set at the page level. Problem is, I don't want to have to hard code the page theme into every page. Is there another place I can set the page theme? I've tried in the code behind of the master page (pre_int), and also adding a web user control with some code behind to the master page.

View 7 Replies

Web Forms :: Setting Theme In Web.Config Location And Intellisense?

Mar 9, 2010

I have my theme for each folder set in the web.config, but on design I have no access to the css or skins for that page unless I add them in the page directive, then upon rendering in html, the page shows 2 references to the same css file.

So for design purpose do I have to reference the file, then delete the references after I finish designing the page? why does the editor not recognize the web.config and reference the proper theme?

View 3 Replies

How To Change YAF(yetanotherforum) Theme

Jun 24, 2010

tutorials or any easy way to change(customize) the YAF.

Change page layout .

View 1 Replies

How To Change Theme Of A Total Application Dynamically

Jun 23, 2010

Imagine an ASP.NET application with several theme defined within it. How can I change theme of total application (not just a single page) dynamically. I know it is possible through <pages Theme="Themename" /> in web.config. But I want to be able to change it dynamically. How shpuld I do it?

View 2 Replies

C# - Change Web Site Theme For Client From MaterPage

Aug 12, 2010

I need to change website theme (css) by clicking button on Master Page.

protected virtual CSSClick (_sender : object, _e : System.EventArgs) : void
{
//Session("Theme") = "Advanced";
}


Google & MSDN didn't gave me the answer :( So no matters on C# or VB.NET , just how to make it ?

View 2 Replies

Web Forms :: Change Theme With Default Stylesheettheme?

Jan 26, 2011

I'll use a default Theme in the web.config

<pages styleSheetTheme="deftheme">

But on a admin directory, i use a different theme. So i change the aspx file header:

theme="themeAdmin"

But right now he uses both themes. I would like to change it so in the admin directory he should use 1 theme and not the default one. How can i change that ?

of course by deleting it from the web.config and adding it to all other aspx files. But i want to use it in the web.config for the deftheme items.

View 2 Replies

Web Forms :: Users To Change The Theme Of Site?

Feb 2, 2011

this is my code, i want my users to change the theme of my site.


[Code]....

View 4 Replies

Jquery - Change Theme Dynamically Without Page Refresh?

Mar 3, 2010

You must have noticed one link in yahoo.com, msn.com or other popular websites named "Page Options". When you click this link you get a popup displaying different small several color icons. After clicking one of these icons your page theme changes without entire page refresh. Now you are able to see the same page with different look and feel.

How does it happen and what it takes to do it? Is this possible in ASP.NET? If yes, how to do it?

View 1 Replies

Web Forms :: Change To 4.0 Causes All Disabled Buttons To Lose Their Theme?

Mar 8, 2011

We have a problem on a new server where disabling a themed button loses its theme. This happens consistently on all buttons now.

We just switched to a new iis server 7.5 using asp.net framework 4.0

Before, the buttons through out the website have a nice style/theme. These are not set inside each button and there are no classes set specifically for buttons I dont think but I believe inherit the theme from I believe the web.config in either:

All the buttons did display a nice light blue gradient, and when disabled they go a few shades lighter blue

For some reason now in .net framework 4.0 all disabled buttons seem to lose their theme and become the default grey color. Enabling them again brings its theme back

why the disabled button would look different now?

View 1 Replies

Web Forms :: Change Theme Colors Of Website Dynamically?

Jul 16, 2013

my question is i want to change the colors of my sites on dynamically  and also images like

In this website their is one panal is given at left middle side and u can change the color of websites.

i want exactly this type

View 1 Replies

Web Forms :: Change Theme / Skin Depending On Login Credentials?

Feb 10, 2011

I would like to change a Theme in an ASP.NET web application, depending on the login credentials. So, if user1 logs in, then the Theme will automatically be set to say User1Theme. And if user2 logs in, then the theme will automatically be set to User2Theme. Otherwise, I would like the theme to be set to DefaultTheme.

View 4 Replies

Custom Server Controls :: Change Theme To Customized Control?

Jun 15, 2010

I have a customrize control (GridView)

I am trying to add theme for GridView

<asp:GridView ID="GridView1" runat="server" SkinID="GVfour"> // this is work

<JJ:RxGridView ID="JJGV" runat="server" SkinID="GVfour" ... > // this is my custom control , skin wonk work , can't findout the Skin named GVfour

this customrized control was not written by me... I just guess the problem may be the render code..

I found out the customrized control alerady assign Css Style on Gridview when OnPreRender
like this

[Code]....

I also tryied to change skinid on page_preInit

which will return error because , gridview is null..

View 3 Replies

Web Forms :: Change The Css And Image Path Based On Theme Selected?

Feb 22, 2010

I need to change the css and image path based on theme selected..

to achieve it, it required to add code in preinit event in very page to change the page.theme

is there a way where the same can be achieved in master page itself instead of using preinit event in all pages ??

in all pages in have used

MasterPageFile
="~/common/MasterPage.master"
Theme="default"

View 20 Replies

Web Forms :: How To Change Website Theme Dynamically At Runtime Without Page Refresh

Mar 31, 2013

I tried this link but I wonder is it possible doing the same thing without page refresh?

View 1 Replies

Change Default Theme Of "project.net"?

Aug 5, 2010

I want to change complete theme of an open source project "project.net". how to change overall theme into custom theme.

NOTE: i already done with coloring and images change by CSS etc... my question is about change theme structure. e.g. and beautiful header in new theme. Accordion on left navigation etc.

View 1 Replies

Web Config. Change Value In Release?

May 6, 2010

I have a custom section on my Web.config as follows:

[Code]....

How can I redefine this section on Web.Release.config?I need to change all values.

View 3 Replies

Web Forms :: Change A Value In Web.config On Linkbutton?

Oct 7, 2010

can i change the culture info from a linkbuttothe problem is like this : on the site i use 2 languages, english and romanian. in web.config the default culture="ro", and i was wondering if on clicking the link button, to change to english version, i can somehow change the culture info to culture="en-us".

View 1 Replies

Configuration :: Change Values In Web.config?

Mar 22, 2011

I have a website that has 2 databases and 2 folders , what I need to do is to create a combo box and if the user select " project1" I should see the tree that populates its data from the first database if user selects "project2" I sshould see the tree that populates its data from the second database , both the 2 trees will be populated in the same page following below is the part of the connection string and folder values for 1 selection but how can i add another one and change it on the fly from the combo box selection

<add key="FolderName" value="test" />
<add key="EnglishFolderName" value="demo1" />
<add key="Virtual path" value="/" />
</appSettings>
<connectionStrings>
<!--<add name="MyConnectionString" connectionString="Data Source=SADERSQLEXPRESS;Initial Catalog=LawsTest;Integrated Security=True;MultipleActiveResultSets=True" providerName="System.Data.SqlClient"/>-->
<add connectionString="Data Source=.;Integrated Security=True;MultipleActiveResultSets=True;Initial Catalog=TarbooshLaw" name="MyConnectionString(Arabic)" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>

View 5 Replies

C# - Dynamically Change ConnectionString In Web.config?

Aug 9, 2010

I have the following in my web.config

<connectionStrings>
<add name="ActiveDirectoryConnection" connectionString="LDAP://ActiveDirectoryDomain1.com" providerName="System.Web.Security.ActiveDirectoryMembershipProvider"/>
</connectionStrings>

I need to add a dropdown box to my login page that allows the user to change the connectionString to a different string, e.g. "LDAP://ActiveDirectoryDomain2.com"

In C# code behind how do change the connectionString value?

More info:

The problem I am having is that there are 4 other web.config settings call that one connectionString. For example:

<activeDirectorySecurityContextSettings connectionStringName="ActiveDirectoryConnection" defaultADUserName="ReportUser" defaultADPassword="password"/>

View 3 Replies

Configuration :: Can Dynamically Change Web.config File

Jan 31, 2011

Is it possible to change web.config file at run time...

(here i want to change database connection details at run time)

View 1 Replies

Configuration :: Change AccessConnectionString In Web.config After Deployment?

Apr 22, 2010

I'm developping an ASP.NET web applition which will be running on a intranet server. The web application will read and write data from / to an access mdb.

The link to this mdb is specified under the web.config file. However, in this web.config, the connection string points to a absolute path (for ex. c:information.mdb).

Is it possble to change this path after the web application is installed on the server (without having it to open in visual studio)? This is needed, because the application will be installed at other locations too, all pointing towards their own server and mdb (and this mdb file won't be always be on the c: drive).

I tried opening the web.config file with notepad, and changing it. Everything seems to work, but I'm not sure this method is good. Since I assumed you have to rebuild the application if you change somthing in the code...

View 2 Replies

C# - Web.release.config Change Dynamic Webservice Url?

Oct 20, 2010

I'm editing my web.release.config file for production. I want the web.config file changed after a publish.
I found how to change the web.config by using the web.release.config file properly, but not for this particular component.

The URL of an dynamic webservice has to change.

In the web.config:

<applicationSettings>
<FooService.Properties.Settings>
<setting name="FooService_Student" serializeAs="String">

[Code]....

now, how do I change the <value> in both settings? I tried the following, but that didn't work out:

<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<applicationSettings>
<FooService.Properties.Settings>
<setting name="FooService_Student" serializeAs="String" xdt:Transform="Replace">

[Code]....

View 2 Replies

Web Forms :: Change Email Address In Web Config

Sep 17, 2012

I use these code in webconfig to sending email to my gmail

 <configuration>
<appSettings>
<add key="Host" value="smtp.gmail.com"/>
<add key="EnableSsl" value="true"/>
<add key="UserName" value="neda@gmail.com"/>
<add key="Password" value="xxxxxxxxxxx"/>
<add key="Port" value="587"/>
</appSettings>
<connectionStrings/>

Now I want when users click on button it send email to my other email address i.e support@behtob.com

now how i should change above code?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved