Mega Code Archive

 
Categories / ASP.Net / Theme Style
 

Disable the Theme for a particular page by using the EnableTheming attribute with the %@ Page % directive

<%@ Page Language="C#" EnableTheming="false" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">     <title>Disable Page Theme</title> </head> <body>     <form id="form1" runat="server">     <div>     <asp:Label         id="Label1"         Text="Don't Theme Me!"         Runat="server" />     </div>     </form> </body> </html>