I am working on asp.net website and i want to implement themes on my site. If i select any theme then it will change whole UI not only colors. After Change it will show a new User interface. Like change in div size, width and location same for controls and same all html tag that is used in page.
I got lot of example of themes where it it changing only UI color.
I have a portfolio website I am building for fun, I am graduating about this time next year. I have added ASP.NET themes to this portfolio website, and I have added themes to other ASP.NET sites before. I really love the feature! I have been noticing though that other sites (not asp.net that I've seen) change "Themes" without the page refreshing and I understand its probably just changing which CSS the site is using. Is there a way to do something like this in ASP.NET 4.0?
I am just setting the default theme in the web.config, and then setting a session variable through a couple asp:ImageButton's, then in the Page_PagePrePreInit setting the page.theme to the session variable. This is my first time taking that route, I usually use "profiles" to save the theme info.
Am trying to implement the beerhouse CMS (ASP.NET 2.0 Website Programming: Problem - Design - Solution), I face a problem in the second chapter, while implementing the themes.
The problem here is even when I select white as the theme it remains as default, though the postback happens, it remains a white. I have also applied the breakpoint, here this.Page.Theme is always white.
The themes are called from the helper class
//This is the helper class public static string[] GetThemes() { if (HttpContext.Current.Cache["SiteThemes"] != null) { return (string[])HttpContext.Current.Cache["SiteThemes"]; } else { string themesDirPath = HttpContext.Current.Server.MapPath("~/App_Themes"); // get the array of themes folders under /app_themes string[] themes = Directory.GetDirectories(themesDirPath); for (int i = 0; i <= themes.Length - 1; i++) themes[i] = Path.GetFileName(themes[i]); // cache the array with a dependency to the folder CacheDependency dep = new CacheDependency(themesDirPath); HttpContext.Current.Cache.Insert("SiteThemes", themes, dep); return themes; } }
And the dropdownlist is binded to the helper class through a user control protected void Page_Load(object sender, EventArgs e) { if (Globals.ThemesSelectorID.Length == 0) Globals.ThemesSelectorID = ddlThemes.UniqueID; ddlThemes.DataSource = Helpers.GetThemes(); ddlThemes.DataBind(); ddlThemes.SelectedValue = this.Page.Theme; }
I have designed to themes, one is default and the other one is white, and declared it in the pages section in
I am working on an ASP.NET 2.0 website project. It has the frontend part for end-users and an admin part for administrators. I have created two themes for each of them. What I want to do is apply one theme to frontend pages and another theme to admin pages without having to specify the theme on each page.
I have atleast 10 websites that have different css,html,javasacripts and webconfig. But the same code behind files.With this design everything is hard to maintain. So I decided to work on it and I started moving all the queries in the code beghind file to stored procedures. Since every website uses the same database.
What I have decided is to make use of themes and multiple master pages? IS this the best way to go about it?
Also lets say I have two templates. There is site A and site B. both using different templates. And have pages Home About Us and Contact.
Now would I be creating three different masterpages? for each template so 6 in total? ( since none of the templates are supposed to look the same)
or Should I just create two masterpages? if so how would I manage the html of the page so it looks different?
I created a VB website, added Master pages, some styling and a few other components, but no code. I am getting ready to add some new web forms with code, but I want to use C#. Can I just change the Page language on the web form to C#? Or do I have to change options in web.config or other places? Couls I create use both VB and C# in a web site?
I have a web site developed in framework 3.5 , OS 2008 Server and iis 6.0 My web site running on port no. 80 and accessible in Lan network but it is not accessed when I changed to any port no like 8060 or 88. how to change port no so that I can access it in LAN network
I have the link that I published on my IIS. Testing is done and we want to Go Live. I want to change my website name www.something.com. How can I change the name of the link.
I got a website project and found I couldn't assign a fixed port number for the application in development server. (When I debug, the port number following localhost:1194 always changes)
I've been googling it for hours, but the closest one is how to configure port number for web applicaiton, with a web application I know go to property-web-specific port, but with a web site project I can't find such an option anywhere.
A web site has just been created with VB as the programming langage and contains only a couple of short webforms. What would be the simplest and quickest way to change it from VB to C#?
Our web reference does not seem to be defined in web.config of the website that consumes it. I found that there is a configuration file called "Reference.map" in the "Web References" folder that looks editable, but when I edit them nothing happens. I even renamed the WSDL file in the folder to see if it would get a new one. It did not.
Do I have to do a build just to change the URL of a referenced Web Service?
I wish to keep the site settings like ProductsPerpage, SiteName, MaximumFileUploads etc in web.config file I wish to add a "Change Settings" form in the web site in order to change settings. Is it a standard method to access and edit the system.config file programmatically for changing site settings? Else what should be the good approach I should follow?
I am developing a website in MVC 2.0. I want to change the View folder location in my website. I wanted to keep the views folder inside other folders, When I try to do so i am getting following errors
The view 'Index' or its master was not found. The following locations were searched:
Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
My Views folder will be in ~/XYZ/ABC/Views instead of ~/Views. Will I get any problems If I change the default Views folder location. Do I need to change anything in HTML Helper classes because I don't know anything in MVC as this is my starting project i dont want to risk.
I use cookie to change the language of my website.
When I click a LinkButton to change the language for first time it works but the other button doesn't work to change the language . I should delete cookie to change the language.
I'm not sure what is the best way to create website that allows user to change its language. The website is really small, it has couple of pages (Default.aspx, Location.aspx, Catalogue.aspx and Info.aspx), but I'm not sure how to change the language of the content. User can change the language by clicking on one of the four image buttons which then add "lang" query string to the url, but whenever page reloads it keeps adding more and more "lang" querystrings.
I am working on an ASP.NET web application in Visual Studio 2005. I am using a trace listener to check the values of variables as I test the web application. Every time I publish the web site it overwrites the entire web site so I need to give my log file write permissions for the ASPNET account again. Is there a way to automate this chore as part of the publishing process?