How to ignore a theme in a web service .asmx page?

Last post 11-09-2009 6:20 PM by Dave Sussman. 7 replies.

Sort Posts:

  • How to ignore a theme in a web service .asmx page?

    11-06-2009, 7:04 PM
    • Member
      point Member
    • nkk9960
    • Member since 09-24-2008, 1:30 AM
    • Posts 5

    We have a large project that was recently converted from 1.1 to 2.0 that is now using themes.  In addition to regular .aspx pages, the project contains web service .asmx pages.  My problem is that the web service test pages are picking up the theme (which happens to include a dark background), and making it very difficult to see the links to the methods. 

    Is there any way for the web service test pages to ignore or override the theme?  I know they are truly test pages, but they are almost impossible to use currently.

    The web services are in their own folder.  I tried adding this <pages theme=""></pagesto that folders web.config file, but it does not work.

    Thanks in advance!

  • Re: How to ignore a theme in a web service .asmx page?

    11-07-2009, 1:15 AM

    hi.

    though you are going right,i can't getting what it's not working.

    you can try this.


    <pages styleSheetTheme="" theme="">

    </pages>


    thanks.



  • Re: How to ignore a theme in a web service .asmx page?

    11-08-2009, 7:04 AM

    Interesting, I've never noticed that before. I can't think of a way offhand; I've tried a few things, but will ping the team to get a better response.

  • Re: How to ignore a theme in a web service .asmx page?

    11-08-2009, 6:03 PM

    No reply from the team yet (well, it is Sunday), but someone else suggested a really simple idea. Move all of your web services into a separate folder and then add a web.config to that folder. Within the web.config you can have <pages Theme="" /> to reset the theme for just that folder.

  • Re: How to ignore a theme in a web service .asmx page?

    11-08-2009, 9:12 PM
    • Member
      point Member
    • nkk9960
    • Member since 09-24-2008, 1:30 AM
    • Posts 5

    Thanks but I already tried that, with no luck.  Hopefully your team will have more ideas on Monday! 

  • Re: How to ignore a theme in a web service .asmx page?

    11-09-2009, 3:41 AM
    Answer

    You're right, it doesn't. Strange, it should override the theme. OK, how about using a stylesheet theme instead. So use:

    <pages styleSheetTheme="foo" />

    instead of

    <pages theme="foo" />

    There's a subtle difference between the two. With 'theme' the theme properties will always override the properties on the control itself (ie the properties for the control are applied, then the properties for the theme), while 'styleSheetTheme' won't override them (ie the properties of the theme are applied, then the properties of the control).  This probably won't make any difference to your usage of themes, but does mean that the styles that are inline on the web service test page don't get overridden by the thteme stylesheet. You don't need a separate folder for this either.

  • Re: How to ignore a theme in a web service .asmx page?

    11-09-2009, 2:29 PM
    • Member
      point Member
    • nkk9960
    • Member since 09-24-2008, 1:30 AM
    • Posts 5

    No luck with styleSheetTheme either. 

  • Re: How to ignore a theme in a web service .asmx page?

    11-09-2009, 6:20 PM

    Hmm, that definitely worked for me, but it was a very simple site (one page and onw service) and the stylesheet only set one property - the body background-colour.

    No one else has come up with anything else yet, but I'll keep you posted if they do.

Page 1 of 1 (8 items)