header cause conflicts
-
There is an error showing "withEvents variable 'header' conflicts with property 'header' in the base class 'Page' and should be declared 'Shadows' This error message appear in every page of my web form. My code are like this: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="tutorial1.aspx.vb" Inherits="tutorial1" %> <%@ Register TagPrefix="background" TagName="header" Src="header.ascx" %> <%@ Register TagPrefix="background" TagName="body" Src="body.ascx" %> <%@ Register TagPrefix="background" TagName="footer" Src="footer.ascx" %> The tagPerfix is my background images. My page hyperlink also inside the header.ascx
-
There is an error showing "withEvents variable 'header' conflicts with property 'header' in the base class 'Page' and should be declared 'Shadows' This error message appear in every page of my web form. My code are like this: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="tutorial1.aspx.vb" Inherits="tutorial1" %> <%@ Register TagPrefix="background" TagName="header" Src="header.ascx" %> <%@ Register TagPrefix="background" TagName="body" Src="body.ascx" %> <%@ Register TagPrefix="background" TagName="footer" Src="footer.ascx" %> The tagPerfix is my background images. My page hyperlink also inside the header.ascx
Whether U have kept user controls in a seperate folder or stright away in the application? "I find that the harder I work, the more luck I seem to have."
-
Whether U have kept user controls in a seperate folder or stright away in the application? "I find that the harder I work, the more luck I seem to have."
Do u mean my ascx file? yes I have it in the same folder...
-
Do u mean my ascx file? yes I have it in the same folder...
Place it in a folder named UserControl <%@ Register TagPrefix="background" TagName="header" Src="UserControl/header.ascx" %> Where user control is a foldername "I find that the harder I work, the more luck I seem to have."
-
Place it in a folder named UserControl <%@ Register TagPrefix="background" TagName="header" Src="UserControl/header.ascx" %> Where user control is a foldername "I find that the harder I work, the more luck I seem to have."
Ok it don't work..It still showing the same error.
-
Ok it don't work..It still showing the same error.
If its the case open a new webpage and drag and drop header and footer on it Hope it works Happy coding "I find that the harder I work, the more luck I seem to have."
-
If its the case open a new webpage and drag and drop header and footer on it Hope it works Happy coding "I find that the harder I work, the more luck I seem to have."
I am sorry that i couldn't get what do you mean drag and drop a header and footer into a new webpage..if i drag and drop my header.ascx it will become a hyperlink.