Web Forms :: Site Theme Based On Url?

Feb 4, 2010

I have a few sites that use the same application but use details to populate the site content such as title, logo and theme based on the URL. These details are stored in a database.

What is the best way to populate these details. I was thinking this should be done in the Global.asax rather then my page.master

I have a master page that is used for all the sites and had the code called ther but it might be better to do the database calls in Global rather then in the master page?

View 3 Replies


Similar Messages:

Web Forms :: Theme Changing For Web Site?

Jan 20, 2011

I am now in process doing theme for my web application.

This is how i want my Theme work :Whenever user choose to change the theme, the whole web site theme should changed accrodingly.

Most of the examples that i find out online require to assign the theme in Page_PreInit event in every page. The theme name is store in session variable.

My concern is that is there anyway to assign particular theme to whole web site without having assing it to every page and store the theme into session variable.

View 3 Replies

Web Forms :: Theme Not Working - Live Site

Jan 20, 2010

The theme I'm using is not working in Visual Web Developer, I have the following code in place:

<%@
Page
Theme="MyTheme"
Language="VB"
AutoEventWireup="false"
CodeFile="Default2.aspx.vb"
Inherits="Default2" %>

the theme is getting applied to the live site.

View 3 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

Web Forms :: Setting Theme Based Of Subdomain Value?

Dec 16, 2010

I need to setup a site so that when you go sub_a.something.com theme sub_a is applied ro sub_b.something.com theme sub_b is applied and a session variable is set to keep track of the subdomain. The idea is a site that uses themes for each location. Kind of like a national newspaper that will have users, groups and themes setup per city.

View 2 Replies

Web Forms :: Changing The Css Path Based On Theme Selected?

Feb 4, 2010

I have provided 2 theme in home page (default.aspx) , onclick of this link i am able to change the css path and image path according to the theme selected but once i login the image path are comming correctly accordinly to theme selected but the css (stylesheet) path is not changing.

when i select a theme and view the source of default page all the paths are changing but once loged css path is not changing.

View 4 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

MVC :: Mvc Theme And Developing Site Design?

Nov 10, 2010

i wanna learn how to nice appearance my mvc sites. for example i am writing an application vs2010 standart theme of mvc. how can i change css file. do you know nice theme css about this. how can i develope my site design. css knowlange..

View 1 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

VS 2008 - Restricting Access To Web Pages (on Intranet Site) Based On Role Based Authorization

Jul 12, 2011

I have a simple intranet site. It has a role based authorization in the web.config file.

Any user's in a specific role called as "Apr-Sales-Writers" will be authorized to use those pages. If not, they will not be authorized. So far so good. Works fine. But we added additional functionality where a new active directory group (means new role) has to be added and user's belonging to this new AD group should be given access to only specific .aspx pages on the intranet site. I am using a web.sitemap and it looks like this.

If the user's belong to say AD group "Apr-Sales-Writers", they should access only default.aspx and salesData.aspx pages. User's belonging to new AD group (which I did not include in the web.config file below), should have access to other .aspx pages.

[CODE]<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="default.aspx" title="Home" description="Home">
<siteMapNode title="sales Data" description="sales Data">
<siteMapNode url="salesData.aspx" title="sales Data" description="sales Data" />

[Code] ....

View 7 Replies

Curious Site Is A Forms Based App Or MVC?

Mar 10, 2010

I'm curious if anyone knows if this site is a forms based app or if it is MVC.

View 1 Replies

Add Per Request - Token Based Authentication To Mvc Site

Apr 4, 2011

I have an existing asp.net mvc website that uses basic forms authentication. The site has a login page that posts back to a login action, which logs the user in via FormsAuthentication.SetAuthCookie(). I am looking to add an api to the site, as an mvc2 area, where users would be authenticated based on a token passed as an http header. This area will consist of only json actions, so redirecting the user to a login page doesn't make sense. Instead, I want the users to just pass a token along with each request. That token is mapped to each user account and the user would be authenticated automatically.

I'm struggling with where to put this logic. At this point, the best choice seems to be adding the header lookup logic and authentication to the Global.asax in the Application_AuthenticateRequest method. I want to avoid needing to redirect the user after calling FormsAuthentication.SetAuthCookie(), though. I want the login action to be transparent to them. Am I approaching this the wrong way? As a side note: Requiring a username/password for api requests is not possible, as the site has a mix of users. Some joined using OpenID while the rest joined with a username/password.

View 1 Replies

C# - Build Dynamic Clothing - Based Web - Site?

Nov 10, 2010

For comparison: something like the shirt builder application at [URL] Say, if I have fabric image and want to generate base, collar, cuff etc. How should I do it on server side in .NET, and generate different components of shirt.

View 1 Replies

AJAX :: Web Site Based With Google Analytics

Jan 5, 2011

i have a web site that based on ajax and all content will be replaced by ajax (not by going to other pages)

so i have html page with <head> inside it i have this code

[Code]....

View 1 Replies

Configuration :: Existing Site Based On NopCommerce 1.6 CMS (.Net 3.5)?

Sep 12, 2010

I'm working on an existing site based on nopCommerce 1.6 CMS (.Net 3.5) I'm using VS2010 and C#.I can create new pages and new .cs code to go with it but when I'm trying to chage existng code on .aspx pages inside the nopCommerce classes I can't build/re-build the project. the compiler just can't find the chages to the .cs code for example - when I add a simple button to the .aspx and an OnClick event to the .cs and trying to build the project it just can't find the OnClick event code on the codeBehind page and the build fails.I understand the project is pre-compiled (there are alot of .dll files in the bin directory)

even if I'll delete the entire .cs file and build the build will succeed - it is as if the build doesn't work at all... doesn't the build/re-build suppose to re-create the .dll files? I've tried changing the target .Net framework for the compiler - doesn't seem to be the problem here.Another thing - every .aspx page comes with both .cs file and .designer.cs file. the .designer.cs file look something like this: [Code]....

View 4 Replies

Restrict Access To Web Site Based On Referrer, Cookies Or Something Else?

Feb 22, 2010

We have a scenario whereby we are hosting an ASP.NET MVC web site on behalf of someone else.The customer in this case wants us to restrict access to the web site, to those users who have logged in to their main portal. They should then only be able to get to our web site via a link from that portal.At this point I'm not yet sure what technology or authentication mechanism the 3rd party are using but just wanted to clarify what the possible options might be.If we call our hosted site B, and their portal web site A,as I see it we could:Check the referrer for all requests to B, unless they've come from A they can't get inCheck for a specific cookie (assuming A uses cookies)

View 2 Replies

Security :: Secured Site Using The Login Control / Do Not Want Them Redirected Based On Their Login Status?

Mar 24, 2011

I am doing a simple secured site using the login control. I would like users to be redirected to their dashboard page once they log in, but after that if they choose to browse I do NOT want them redirected based on their login status. I am using the generic template provided in VWD with the basic login setup in the template including the tabbed ASP menu control - nothing fancy, nothing custom. This is intended to be something very simple and quick. Here is the code I am using for the page load...

[Code]....

So if I do this code WITHOUT the "IsPostBack", logged in users are always redirected to their dashboard and cannot see the hompage. However with that IsPostBack test, the redirect after initial login doesn't work.

I know this is extremely basic and simple, but I am restarting with this stuff after a year away, and I need a nudge.

View 4 Replies

Configuration :: Configuring Original Settings For New Website Based On Site Files From 1st Website & Password Q

Oct 19, 2010

I want to make a 2nd website and am using a copy of the site files from my 1st site built for me, I added them via FTP to the hosting company. I realise when I edit the new site via the CMS it is editing both sites plus when I try to change anything to the CSS file I get the following error -

C:inetpubvhosts*****mysite******httpdocsapp_themessiteStyleSheet.css

So my questions are what do I need to change to be able to deploy a new site with the files I have to make a new site?I also don't understand where the password is coming from, I can see the User ID comes from the database. in the Asp.net connection strings are the following:

site Data Source=sql7.hostinguk.net;Initial Catalog=***;User ID=***;Password=*** - Where is this password coming from?

membership Data Source=sql7.hostinguk.net;User ID=***;Password=***;persist security info=False;initial catalog=***;

View 2 Replies

Web Forms :: Setting A Theme From A Dll?

Jan 7, 2010

I am new to ASp.Net 3.5 and the concept of themes. I have a master page named ParentMaster in a web site along with a theme in the App_Themes folder. When i publish this website, i get 2 dll's one for the masterpage and one for the theme. Now i am inheriting the parent master page in another web project's child masterpage using the property

Inherits="ASP.masterpage_master"

Now i want to get the theme also like this. I have a theme dll that i have referenced and i need to set the theme on an aspx page based on this dll. How can i do that?

View 3 Replies

Web Forms :: How To Apply Theme To Control

Jun 15, 2010

this will work

[Code]....

do I miss anything should do but I didn't

View 2 Replies

Web Forms :: How To Apply Theme In Subfolder

Oct 26, 2010

My site structure is like that I've 4 sub folders and few pages at roots when sub folder pages are viewed in browser their css breaks some of the images doesn't work well.

View 2 Replies

Web Forms :: Css Theme Wont Work

May 27, 2010

i download a css theme and i want use it in my website but i have some problem with menu in this theme menu use ListItem:

[Code]....

and the style for the menu id is:

[Code]....

but when i use a horizontal menu in my masterpage and set the rendering mode to list it's not working like the sample that i have. is there something that i have to change?

View 1 Replies

Web Forms :: Add Additional Theme To Page?

Jun 4, 2010

In web.config I have this line:

<
pages
theme="BaseTheme">

On the page, I have this line:

<%
@
Page
Language="C#"
AutoEventWireup="true"
Theme
="Theme1"
Inherits="_Default"
Codebehind="Default.aspx.cs" %>

I thought Theme1 should be additional to BaseTheme with Theme1 has higher priority in case of conflict. But Theme1 seems to have replaced BaseTheme completely and nothing in BaseTheme shows on the Default.aspx page. If this is the right behaviol, how to add additional theme to a page?

View 5 Replies

Web Forms :: Want To Give Theme Or Css Dynamically ?

Nov 15, 2010

in my web application i want to give theme or css dynamically sal for example there are 5 radiobuttons each with some different theme user will choose any one and than that theme should apply to his page.i don't want give class name dynamically i want to give entire theme dynamically.

View 2 Replies

Web Forms :: Run Javascript For A Selected Theme?

Jan 2, 2010

I'm just beginning to learn about themes and skins and I'm wondering if it is possible to include some js.files in a themefolder.

I've created a theme called "bluefixed" but it needs some javascript that other themes don't. I thought it would just be a matter of putting a js file in the correct themefolder and than that js filed would be included, but i'm not able to get this working.

View 2 Replies







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