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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. them error?

them error?

Scheduled Pinned Locked Moved ASP.NET
helpcssdesignsysadmintutorial
9 Posts 6 Posters 1 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.
  • P Offline
    P Offline
    pss srinivasan
    wrote on last edited by
    #1

    hi i want to add stylesheet in my content page. i written code like this <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server" > <link href="../App_Themes/Blue/DefStyles.css" rel="stylesheet" type="text/css" /> </asp:Content> if i switch design window below error is coming

    "
    Error 40
    Cannot switch views: Validation (XHTML 1.0 Transitional):
    Element 'link' cannot be nested within element 'td'.
    "

    how to solve this problem?

    S A S 3 Replies Last reply
    0
    • P pss srinivasan

      hi i want to add stylesheet in my content page. i written code like this <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server" > <link href="../App_Themes/Blue/DefStyles.css" rel="stylesheet" type="text/css" /> </asp:Content> if i switch design window below error is coming

      "
      Error 40
      Cannot switch views: Validation (XHTML 1.0 Transitional):
      Element 'link' cannot be nested within element 'td'.
      "

      how to solve this problem?

      S Offline
      S Offline
      Sneha Bisht
      wrote on last edited by
      #2

      this should be like this

      P 1 Reply Last reply
      0
      • S Sneha Bisht

        this should be like this

        P Offline
        P Offline
        pss srinivasan
        wrote on last edited by
        #3

        if i write like that this error coming

        Error 39 Only Content controls are allowed directly in a content page that contains Content controls.

        1 Reply Last reply
        0
        • P pss srinivasan

          hi i want to add stylesheet in my content page. i written code like this <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server" > <link href="../App_Themes/Blue/DefStyles.css" rel="stylesheet" type="text/css" /> </asp:Content> if i switch design window below error is coming

          "
          Error 40
          Cannot switch views: Validation (XHTML 1.0 Transitional):
          Element 'link' cannot be nested within element 'td'.
          "

          how to solve this problem?

          A Offline
          A Offline
          Anurag Gandhi
          wrote on last edited by
          #4

          Include your css file using ScriptManager

          ScriptManager.RegisterClientScriptBlock(this,
          typeof(nameOfPageOrControl),
          "typeAUniqueScriptNameHere3",
          "",
          false);

          Remove the <link /> tag from your content PlaceHolder, then, it should work.

          Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.

          1 Reply Last reply
          0
          • P pss srinivasan

            hi i want to add stylesheet in my content page. i written code like this <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server" > <link href="../App_Themes/Blue/DefStyles.css" rel="stylesheet" type="text/css" /> </asp:Content> if i switch design window below error is coming

            "
            Error 40
            Cannot switch views: Validation (XHTML 1.0 Transitional):
            Element 'link' cannot be nested within element 'td'.
            "

            how to solve this problem?

            S Offline
            S Offline
            sashidhar
            wrote on last edited by
            #5

            below is the sample content page which consists of style sheet..! one button and a textbox..!

            Close Close

            Closeasp:Content--</asp:Content>

            LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

            P 1 Reply Last reply
            0
            • S sashidhar

              below is the sample content page which consists of style sheet..! one button and a textbox..!

              Close Close

              Closeasp:Content--</asp:Content>

              LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

              P Offline
              P Offline
              pss srinivasan
              wrote on last edited by
              #6

              Friend thnx for ur replay. Now run time this error coming

              Cannot find ContentPlaceHolder 'head' in the master page '../common/MasterPage.master', verify content control's ContentPlaceHolderID attribute in the content page.

              A S L 3 Replies Last reply
              0
              • P pss srinivasan

                Friend thnx for ur replay. Now run time this error coming

                Cannot find ContentPlaceHolder 'head' in the master page '../common/MasterPage.master', verify content control's ContentPlaceHolderID attribute in the content page.

                A Offline
                A Offline
                Abhijit Jana
                wrote on last edited by
                #7

                pss.srinivasan wrote:

                Cannot find ContentPlaceHolder 'head' in the master page '../common/MasterPage.master', verify content control's ContentPlaceHolderID attribute in the content page.

                What is the ContentPlaceHolder name in master Page ? You should have to mention the Same name over there.

                Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                1 Reply Last reply
                0
                • P pss srinivasan

                  Friend thnx for ur replay. Now run time this error coming

                  Cannot find ContentPlaceHolder 'head' in the master page '../common/MasterPage.master', verify content control's ContentPlaceHolderID attribute in the content page.

                  S Offline
                  S Offline
                  sashidhar
                  wrote on last edited by
                  #8

                  After Searchin google i am getting different types of solution..! Below is one..! [^] [^]

                  LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

                  1 Reply Last reply
                  0
                  • P pss srinivasan

                    Friend thnx for ur replay. Now run time this error coming

                    Cannot find ContentPlaceHolder 'head' in the master page '../common/MasterPage.master', verify content control's ContentPlaceHolderID attribute in the content page.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    Create a ContentPlaceHolder in the master page between the and tags with the id 'head'

                    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