Web Forms :: Themes Or Master Pages?
Jun 21, 2010
I have been working on a fun little project just to build my skills as an ASP.Net developer. I have learned quite a bit thus far, and don't normally post questions in forums. Google and the books I own generally do the trick for me. But for this question I would like some community input.
I am developing a simple blog platform in ASP.Net / C#. Eventually I hope it will basically be a clone of how Wordpress works. Again, this is mostly a learning project for myself and I realize there are many projects out there doing what I am doing in .Net.
Anyways, the question I want some input on is whether I should use themes or master pages to customize the look and feel of the site. As I understand it, a theme mostly just changes colors and such, but CAN do much more. Whereas a master page can easily change the look and feel of an entire site.
What are the pro's and con's of either route, and what would y'all recommend? I'm not really looking for code examples here, just input on what y'all would think is the best route to pursue.
View 6 Replies
Similar Messages:
Aug 12, 2010
to a vb code resource/tutorial that explains how you can change a theme from a dropdown list on a content page derived from a nested master page, not the main master page.
View 1 Replies
Jun 28, 2010
We have a nested master page which we have made it as a seperate class library.(Becoz many projects use the same master page) Initially we had all our css files,skin files, images inside the Master page project itself. But now we wanted the themes to be global and moved it out to wwwroot as mentioned in the below link.
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/themes/themes.aspx#global
The Masterpage has user controls out of which one user control has the telerik menu. The css is not getting set for that particular user control. We use relative path for setting the style sheet link. But it is not getting set. Its still referring to the old path. But all the skin files, images are pointing to the new global location. Except for the telerik menu rest all is aligned according to the style sheet.
When i do view source, the link to style sheet is pointing to the old location. I dunno why this happening. Is this a telerik issue or i am going wrong somewhere.
View 7 Replies
Jan 25, 2011
I'm trying to set profiles/themes using a basepage to allow the colour of my site to change for users. I can do this on a single page but I'm trying to do this site wide and am getting an error.
I've been watching http://www.asp.net/general/videos/how-do-i-create-user-selectable-themes-for-a-web-site this tutorial
but I'm getting errors at the final step...
System.NullReferenceException was unhandled by user code Message="Object reference not set to an instance of an object." Source="App_Code.gflsvdcc" StackTrace: at BasePage.OnPreInit(EventArgs e) in D:WebsitesBalticQuarter19.01.11App_CodeBasePage.vb:line
9 at System.Web.UI.Page.PerformPreInit() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) InnerException:
is the error, The error occurs because of the line 9 =
9 - Me.Theme = Request.Form(Me.Master.FindControl("DropDownList1").UniqueID)
If I insert this instead of the text above the colours change on the site.
Me.Theme = Request.Form("ctl00$DropDownList1")[code].....
View 4 Replies
Oct 21, 2010
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?
View 1 Replies
Dec 29, 2010
I have a master page which contains a treeview and a linkbutton. i have used 3 different stylesheets for the same page and those are listed in dropdownlist on the same master page. on dropdownlist change() event stylesheet of the master page change, i have 1 default style sheet which will come as master page loads.
now the problem is when i changed stylesheet from dropdown list, stylesheet changes the master page , but after that when if i clicked on treeview or linkbutton the stylesheet is restored to default one.
i have written following code
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
View 2 Replies
Feb 9, 2011
I have an App_Themes directory, and also Master pages for a ASP.NET website.
Can I use 2 different themes based on the master page?
View 1 Replies
Sep 5, 2010
i'm developing a site using VS2010 and with my windows vista busniness OS. i used the default VS2010 wizard for new web application to create it. included a folder in the root directory and created new aspx pages to derive from the master page in the root directory of my site. everything shows on the new pages except the jpeg image logo in the master page. But other aspx pages i created in the root directory shows every thing fine.
View 1 Replies
Jun 21, 2010
Currently I'm doing common functionality required throughout my site inside of my masterpage. What I want to do is move this functionality to a BaseClass so All my pages inherit from the Base Class. However, I'm not sure how to set this up interms of c# code with regards to Using a Base Class and then having a masterpage applied to my aspx pages that i create.
View 5 Replies
May 11, 2010
My requirement was to share master files among diff projects i read this doc [URL] so i use this technique to share msster pages among my diff projects in a soln but i dnt know how to reference such shared master page as if i use such
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../masterPages/masterInvGen.Master"
View 1 Replies
Aug 4, 2010
I got a Master page and nested master pages in the subfolders.
Top Level Master page
Second Level Master page inherited Top Level Master page
Third Level Master page inherited Second Level Master page
However, changes (i.e. new images & alt. name) that I made in the Top level master page did not apply to the second or third levels.My webpage has a correct front page but not in the sections. How can i correct this ?
View 3 Replies
Jul 15, 2010
master page has runat=server on the head tag element, it is injecting a stylesheet on the page for some reason and I am not doing it explicitly.
Is it a themes setting that is adding the stylesheet? How can I disable it for this master page?
View 1 Replies
May 17, 2013
How can we add titles to each content pages which inherits from mater pages in asp.net?
View 1 Replies
Jul 2, 2010
How do you implement SquishIt to bundle Css/Js across View Pages and Render it in the Master page? I thought I could use a ContentPlaceHolder above the Render portion, but there seems to be some odd behavior where it sometimes adds 3 files (1 in the view page and 2 in the master page) but other times will ignore the file added from the View Page.
Index.aspx
<asp:Content ContentPlaceHolderID="CssFiles" runat="server">
<% CssHelper.Add("home.css"); %>
</asp:Content>
Site.master
<asp:ContentPlaceHolder ID="CssFiles" runat="server" />
<% CssHelper.Add("reset.css"); %>
<% CssHelper.Add("master.css"); %>
<%=CssHelper.Render() %>
My current solution is a Static wrapper around SquishIt's static Bundle class that keeps the BundleBuilder in HttpContext.Current.Items.
I'm curious if this has been done successfully and how so.
View 2 Replies
Jan 22, 2010
Is it possible with ASP.NET Master Pages to create content pages dynamically?That is, I know we can create content dynamically, but the content pages themselves,can those be created programmatically? I want to give my users the ability to define new content pages (i.e. Categories: Sofas, Tables, Lamps, and add/delete as they see fit) through a management panel. The resulting content pages should have proper URL naming, so that they index properly.An example: http://www.example.com/products/Lamps/contentpage.aspx.Is there a demonstration of this somewhere I can view?
View 4 Replies
Apr 19, 2010
I have over 300 content pages to create. Each has some standard styling. I would like to generate these pages, and was just wondering if there is a utility in web developer 2008 express to do so (otherwise I will just build one - but it would be great not having to do so!)
View 1 Replies
Sep 5, 2010
I have a master page setup that is used throughout my site that is basically a header with a menu. I recently added a textbox and a button to this master page which is to be a quick search box that is available anywhere in the site. When a user enters text into the search box and hits the button, I need to load the actual content page which is used to search and show search results (which also uses this same master page), and have the text entered available so the search can be triggered automatically. Again, this search text box and button is now in my master page so it could be triggered from anywhere in the app... it serves as a convenient way to do a basic search from anywhere in my app, without having to first navigate to the actual 'search page' that already exists. You can also navigate to the actual search page, which uses the same master page, where there is many more search options.I'm thrown off by the master page arrangement, which I have not used until this project. What do I do?
View 4 Replies
Apr 1, 2011
what is difference between Master page and Master Pages in ASP.Net. Is both are same or different.
View 3 Replies
Feb 10, 2010
Is there a way to assign pages created from a master page with their own meta tags? I know that some search engines don't weight meta tags very highly, but I still would like to use them if possible.
View 3 Replies
Dec 25, 2010
I have spent time learning coding using master pages in inline styles and my sites are functional but look lousy. Now I am turning to learning CSS and to make my sites look more professional.
I wanted to try to convert my sites to using CSS. So I ask the question which is better option?
Also does anyone who develops in a corporation know if Master pages are use much?
View 3 Replies
Mar 12, 2010
i Have one ascx file which is include login control... i want to find that login control from the page.
let say.. me.ascx file..
and me.aspx file.. me.aspx file master with me2.master and me2.master master with me1.master... me.ascx file is in the me1.master ...
i am looking for login control from me.aspx.
using
login = page.master.findcontrol("login1");
but cant find control...
View 1 Replies
Apr 8, 2010
have 2 master pages in my application (master A and master B). The master A is a general menu. The master B is a user menu. Of course master B just appears when the user is logged.Now I'm using stylesheets. I want a style sheet for master A, another one for master B and others (one for each one of the pages of websites).For master A is very simple... I declare a stylesheet in the <head> using <link> tag.I think its not difficult for each page as well. I don't know how to I do it, but I think I can declare inside <%@ Page %> tag. Theres a property called "StyleSheetTheme".The problem is master page B, because I can't use the <head> tag (because master B uses master A) and I can't use <%@ Page %> tag, because its a master page.
View 1 Replies
Oct 28, 2010
i have tow master pages .i want to switch between them according to a some condition
i work with this code to load master page what i want
at every page
[Code]....
i wirite this code for every page in my application
how can i write this code only once such as in Global.asax
View 5 Replies
Oct 14, 2010
Utilizing Visual Studio 2008 and creating Web Application Project. I am looking to use Master page system with Frames. I was wondering if this is possible at the current state?
View 3 Replies
Apr 26, 2010
Is there a way to inforce the master page? For example, if a picture or some texts is out of the master page template then don't show that texts or image that are out of the template area. Currently, even if an image is too big, it will still dispaly on the page but just out of the template area and it looks unprofessional.
View 5 Replies