Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. header cause conflicts

header cause conflicts

Scheduled Pinned Locked Moved ASP.NET
help
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LovelyHelp
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • L LovelyHelp

      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

      H Offline
      H Offline
      HimaBindu Vejella
      wrote on last edited by
      #2

      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."

      L 1 Reply Last reply
      0
      • H HimaBindu Vejella

        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."

        L Offline
        L Offline
        LovelyHelp
        wrote on last edited by
        #3

        Do u mean my ascx file? yes I have it in the same folder...

        H 1 Reply Last reply
        0
        • L LovelyHelp

          Do u mean my ascx file? yes I have it in the same folder...

          H Offline
          H Offline
          HimaBindu Vejella
          wrote on last edited by
          #4

          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."

          L 1 Reply Last reply
          0
          • H HimaBindu Vejella

            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."

            L Offline
            L Offline
            LovelyHelp
            wrote on last edited by
            #5

            Ok it don't work..It still showing the same error.

            H 1 Reply Last reply
            0
            • L LovelyHelp

              Ok it don't work..It still showing the same error.

              H Offline
              H Offline
              HimaBindu Vejella
              wrote on last edited by
              #6

              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."

              L 1 Reply Last reply
              0
              • H HimaBindu Vejella

                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."

                L Offline
                L Offline
                LovelyHelp
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups