Page 1 of 1

Disable Theme

Posted: Wed Nov 26, 2008 9:41 am
by atulkhare
Hii,
I am using able commerce7 licence version..in this tool theme are integrated and that is predefined if a am going to add any page so that theme is apply in defaut..if i dont want to apply theme on any specific page (my additional page which i have added without inheriting any master) so how it possible..
actually i want to display some string on my webpage..with coding this is displaying i havent use any HTML content or control but when i viewSource this page with this string thier HTML control is displaying..
and when i remove these all tags from my HTML(source file ) so it gives error
"Head ..theme =ablecommece" CSS=----"" something like that. becouse theme is applied on every page..
so from where i can set theme on any specific page or whole application...



Thanks And Reagrd
Atul khare

Re: Disable Theme

Posted: Wed Nov 26, 2008 9:53 am
by mazhar
Add the PreInIt function to your custom page and change the theme there. This will override the AbleCommerce theme. For example if you want no theme on your custom page then you can use the following code

Code: Select all

<script runat="server">

    protected void Page_PreInit(object sender, EventArgs e)
    {
        Page.Theme = string.Empty;
    }
</script>
Add the above function you your custom page

Re: Disable Theme

Posted: Wed Nov 26, 2008 11:52 pm
by atulkhare
Thanks a lot for your proper and correct response....

Thanks And Regard
Atul Khare