Hi,
I have several aspx pages. For some of them I have removed from Page directive attributes Theme and Title. The page is called Lazur.aspx. My code behind looks like this:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Lazur : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected override void OnPreInit(EventArgs e)
{
base.OnPreInit(e);
Theme = "Lazur";
Title = "Home"
}
}
I can't set theme using this code. Theme Lazur is in App_Themes folder, it contains Lazur.css and Lazur.skin files. However I see number of errors in my Lazur.aspx file: on error list I see:
Error 1 Validation (): Element 'html' occurs too few times. G:\Documents and Settings\bartek\Moje dokumenty\Visual Studio 2005\WebSites\WebSite1\Lazur.aspx 8 14 G:\...\WebSite1\
Error 2 Unrecognized tag prefix or device filter 'asp'. G:\Documents and Settings\bartek\Moje dokumenty\Visual Studio 2005\WebSites\WebSite1\Lazur.aspx 2 2 G:\...\WebSite1\
But before I removed the attributes Title and Theme everything worked fine. Now it doesn't.
Did anyone experience simmilar problem??
Thanks for help in advance.
rypki