Last post Mar 06, 2013 10:10 AM by saching
Mar 06, 2013 08:57 AM|saching|LINK
I have one control library which built runtime custom infobox control.
There is one CSS file embedded in this control library which works properly for my few modules. But, in one of my module it loads WebResource.axd in the client browser but unable to apply classes over any control. I have opened AXD file and all the defined
Then, I found the root cause of this issue. In my this project we use page theme in the web.config file, where this embeded css file doesnt work.
<pages theme="Default" validateRequest="true">
When I remove this tag from my web.config file, hence its started applying all the declared classes under embeded css file.
Please help me on this. How can I get rid of this kind of problem.
Mar 06, 2013 09:57 AM|Danny117|LINK
Here's ways to make your controls more autonomous.
The web.config is configuration for the whole website. If the style sheet configured on the web.config level doesn't suit your needs then put the style sheet configuration on the page or site.master.
Mar 06, 2013 10:10 AM|saching|LINK
Thanks for your quick response.
But I cant change the default configuration. I mean its running since so long and if I change anything then it could impact other projects too.
Mainly, this project integrated with other modules too.
if I go by below point then, I have to manully add styling on each page. there are various pages across module. Master and Individual.
-> You can drop a style section on the webpage
And, about your other point. This also coulnt possible as I have dll which built custom control. This DLL renders infobox control using HTML writer object. where I can pass or set class name.
-> You can add default styling to your control