W3C Validation Issue!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tea Maker
    New Member
    • Jul 2007
    • 45

    #1

    W3C Validation Issue!

    Hello,

    I have created my new website with Asp.net 2.0
    I fixed most of the basic validation errors, but I still have 4 common errors that are listed below:

    1) Line 116, Column 26: element "triggers" undefined.
    -Highlited Message: <triggers>

    2) Line 117, Column 48: there is no attribute "ControlID"
    - Highlited Message: <asp:AsyncPostB ackTrigger ControlID="Butt on1" EventName="Clic k" />

    3) Line 117, Column 68: there is no attribute "EventName"
    - Highlited Message: …yncPostBackTri gger ControlID="Butt on1" EventName="Clic k" />

    4) Line 117, Column 77: element "asp:AsyncPostB ackTrigger" undefined
    -Highlited Message: … ControlID="Butt on1" EventName="Clic k" />


    If someone knows how to solve one or more of the 4 errors, I will be more than thanksful.

    Best regards,
    Wassim
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    Well, it is what it says it is. There is no such thing as <triggers> or ControlID and all that in HTML. I think some of that was to be interpreted and sent out on the server side as valid html but that's not happening.

    I'm sending this to the .NET forum where they can help you with that.

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      It looks like you copy/pasted the source for your ASPX page into the W3 validator, and not the html it outputs?

      Comment

      • Tea Maker
        New Member
        • Jul 2007
        • 45

        #4
        Originally posted by Plater
        It looks like you copy/pasted the source for your ASPX page into the W3 validator, and not the html it outputs?
        Hello,
        thanks for your reply.

        Well, in the validator online I'm putting like this:
        http://www.mywebsite.c om/Default.aspx
        http://www.mywebsite.c om/AnotherPage.asp x

        Isn't it how we validate our aspx pages? I have validated html websites before, but it's my first time that I try this with an asp.net website.

        Best regards,
        Wassim

        Comment

        • Tea Maker
          New Member
          • Jul 2007
          • 45

          #5
          A tip for you guys is that I'm using Ajax components in my pages, I don't know if this will help you know better what the problem is!

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            Well, the reason I asked is because there should not be any <asp: tags in your html source. That they're there would indicate to me that there are warnings in your compiler telling you those are not correct objects?

            Comment

            • Tea Maker
              New Member
              • Jul 2007
              • 45

              #7
              Originally posted by Plater
              Well, the reason I asked is because there should not be any <asp: tags in your html source. That they're there would indicate to me that there are warnings in your compiler telling you those are not correct objects?
              Hello,
              you are right, I viewed the source code for the website online, and I saw this block of code:

              Code:
              <Triggers>
              <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
              </Triggers>
              I remember that I placed this code because the button was away from the updatePanel (Ajax). However, I removed this block of code completely, and make few modifications to the code, and now my page passed the validation, and the button is also working.

              I don't understand why W3C can't understand the "Triggers" tag, for the moment I was able to solve that, but in the future I might need it again, and I'll pass through the same problem once again! So let's hope someone will be able to find out how to solve it.

              Anyway Thank you guys for your help :)

              Best regards,
              Wassim

              Comment

              • Plater
                Recognized Expert Expert
                • Apr 2007
                • 7872

                #8
                It's not that it doesn't understand the <triggers> tag, it's that its not part of a valid html page.
                Now if you declared your page as XML and gave triggers as a valid element at that point of your page withen the DTD, it might have let it trhough. But I don't know how well it works with custom XML docs

                Comment

                • Tea Maker
                  New Member
                  • Jul 2007
                  • 45

                  #9
                  Originally posted by Plater
                  It's not that it doesn't understand the <triggers> tag, it's that its not part of a valid html page.
                  Now if you declared your page as XML and gave triggers as a valid element at that point of your page withen the DTD, it might have let it trhough. But I don't know how well it works with custom XML docs

                  Thanks for the tip, Plater.

                  I will consider this next time I face the same problem. Many thanks for helping me all the time.

                  Best regards,
                  Wassim

                  Comment

                  Working...