Disable Theme

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
atulkhare
Lieutenant (LT)
Lieutenant (LT)
Posts: 72
Joined: Fri Oct 10, 2008 9:13 am

Disable Theme

Post by atulkhare » Wed Nov 26, 2008 9:41 am

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Disable Theme

Post by mazhar » Wed Nov 26, 2008 9:53 am

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

atulkhare
Lieutenant (LT)
Lieutenant (LT)
Posts: 72
Joined: Fri Oct 10, 2008 9:13 am

Re: Disable Theme

Post by atulkhare » Wed Nov 26, 2008 11:52 pm

Thanks a lot for your proper and correct response....

Thanks And Regard
Atul Khare

Post Reply