Can Disable Theme For WebService
Nov 9, 2010
I have a default page theme set in the <pages /> element of the root web.config, which, in addition to the rest of the website, is being applied to WebService .ASMX pages. I would like to prevent ASP.NET from applying the themes to .ASMX pages. you can edit 'DefaultWsdlHelpGenerator.aspx' in the .NET framework's root CONFIG folder (C:WindowsMicrosoft.NETFrameworkVERSIONCONFIGDefaultWsdlHelpGenerator.aspx) and specify <%@ Page Theme="" %>, but this only works if you are able to access that file on the server.
I have tried adding a <location /> element to the web.config which points at a specific .ASMX file, but that seems to be ignored as the .ASMX page is still being themed.
Is there any way to prevent ASP.NET from applying application themes to .ASMX files which works without modifying the system-level 'DefaultWsdlHelpGenerator.aspx' (mentioned above)?
Edit
I am able to work around this by allowing my base page type to define the applied theme, but even despite my workaround, I am wondering if there is a 'correct' way to override this rather ridiculous behavior in ASP.NET.
View 3 Replies
Similar Messages:
Aug 25, 2010
I have a simple javascipt which enables/disables some checkboxes when another checkbox ticked/unticked. This works fine, however, in some instances when by page is loaded my code behind disables the same check boxes. When this happenes my original check box nolonger seems to have any influence in enableing or disabling - there is no error and all the elements seem to be found by the javascript - it just doesn't enable/disable the checkboxes.
View 5 Replies
May 11, 2010
I have a problem with disabling the tabcontainer.
The problem is that, if a user haven't selected anything, the whole tabcontainer must be disabled. If I disable the tabcontainer it in de codebind, the tabcontainer grayed out but the user can click the tabs.
I can disable one tab in javascript but how can I disable the whole tabcontainer?
View 1 Replies
Jan 17, 2010
i am working in our organization cms system .
i have 2 themes folders (ltr ,rtl)
rtl
---Layout.css
---green.css
---red.css
---Yellow.css
ltr
---Layout.css
---green.css
---red.css
---Yellow.css
senario :
layout.css : for page layout only
green.css : for colors , fonts ... etc .
red.css : for colors , fonts ... etc .
Yellow.css : for colors , fonts ... etc .
in Page_PreInit
Code:
If me.request("lang") = "ar" Then
Me.Page.Theme = "rtl"
ElseIf me.request("lang") = "en" Then
Me.Page.Theme = "ltr"
End If
here i want to use layout.css at first .
then i want to control the color css file ( green , red , yellow ) as user selected with one css file as default (red.css) for example .
what i can do ??
what is the best practices for that ?
View 14 Replies
Jul 18, 2010
I have a MasterPage that has two image buttons , and two content pages, What i want is that when an Image button is clicked ----> the theme changes.
I know that MasterPage do not have a "OnPreInit" function and the theme has to be changed inside the "OnPreInit" function...
so is there any workaround for this problem ?
View 2 Replies
Jun 24, 2010
tutorials or any easy way to change(customize) the YAF.
Change page layout .
View 1 Replies
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
Jan 19, 2010
I want to apply theme for my website. i am using asp.net.
I think there is some easy way in asp.net.using skin files and style sheet.
View 1 Replies
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
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
Jun 15, 2010
this will work
[Code]....
do I miss anything should do but I didn't
View 2 Replies
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
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
Mar 15, 2010
I imagine this would be simple, but I can't find an answer. We set the theme of a page based on a query string parameter (like '?theme=theme1' etc). I just want to know if there is an easy way to tell the theme name is valid, before setting it, or catching and handling the error if it is invalid. The error I get if the theme does not exists is:
"Theme 'theme1' cannot be found in the application or global theme directories."
I am not sure when the exception is thrown. All I can think of is searching the folder, but I would think there would be a simpler way.
View 1 Replies
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
Dec 16, 2010
Good sample for dynamically change theme in MVC 3 RC 2 (Razor).
View 1 Replies
May 31, 2010
I've got the following Setup in my Theme:
App_ThemesDefaultStyleSheet.css
App_ThemesDefaultPrintStyleSheet.css
The PrintStyleSheet.css file has a set of printing css rules set in them wrapped in an @Media Print { } block.
I need a way to programmatically remove the PrintStyleSheet.css from the list of css files for ASP.NET to inject based on some flags. (Some instances we want to print the site verbatim without custom formatting).
I know i could build a seperate theme without the PrintStyleSheet.css in it and switch the theme programmatically, however this would introduce duplication of my master stylesheet which is not acceptable.
View 1 Replies
Sep 20, 2010
We have a page that creates a printable version of the customer's bill. We are using themes via <pages styleSheetTheme="CityDesign">. This page is not using the Master page nor has any style sheet associated with it. I have added <%@ Page Language="C#" EnableTheming="false" Theme="" %> to the page and protected void Page_PreInit(object sender, EventArgs e) { Page.Theme = String.Empty;} to the code behind. The page still has the theme applied.
View 1 Replies
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
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
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
Mar 1, 2011
I'm using the ToggleButtonExtender to display different images for CheckedImageUrl and UncheckedImageUrl.
This works fine if I put the images in a folder within my site and set the property e.g.
[code]....
View 1 Replies
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
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
Oct 11, 2010
Im pretty new and Im not sure what Im doing wrong here. Could anyone please take a look at my code an let me know what my problem is.
[Code]....
View 1 Replies