My site runs with 723 errors - how?

Last post 03-17-2008 4:14 PM by ClayShannon. 20 replies.

Sort Posts:

  • Re: My site runs with 723 errors - how?

    03-17-2008, 11:45 AM
    • Member
      669 point Member
    • ClayShannon
    • Member since 11-09-2007, 11:51 AM
    • Oconomowocowocowoc, WI
    • Posts 1,154

    ClayShannon:

    Where is the alt tag supposed to go? Can someone provide an example of one?

    OK, I did this, and validator no longer complains about it, so I guess it's alright:

    <asp:Image ID="Image1" runat="server" ImageUrl="~/SiteBanner2.PNG" alt="Site Banner" />

    <asp:Image ID="Image1" runat="server" ImageUrl="~/SiteBanner2.PNG" alt="Site Banner" />p:Image ID="Image1" runat="server" ImageUrl="~/SiteBanner2.PNG" alt="Site Banner" />

    Clay Shannon
    www.lulu.com/blackbirdcraven
    www.bclayshannon.photoshop.com
  • Re: My site runs with 723 errors - how?

    03-17-2008, 12:06 PM
    • Member
      52 point Member
    • naimulah
    • Member since 02-23-2008, 8:55 PM
    • Posts 25

    <asp:Image AlternateText="alt text goes here" />

  • Re: My site runs with 723 errors - how?

    03-17-2008, 3:32 PM
    Answer
    • Participant
      1,158 point Participant
    • anthonypj
    • Member since 05-11-2007, 3:31 PM
    • Posts 278

    well looks like asp.net defualt genrates a div tag when rendering the girdview control , so do not place inside <p></p> tags rather place the girdview control outside your <p></p> tags ... are you using css adapters with your gridview control ?

     

  • Re: My site runs with 723 errors - how?

    03-17-2008, 3:57 PM
    Answer
    • Contributor
      5,213 point Contributor
    • DarthSwian
    • Member since 12-04-2007, 7:47 PM
    • Florida
    • Posts 1,020

     The div is generated by the gridview.

     I would not get so crazy about the WC3 errors. .Net generates html code for a lot of the elements and the WC3 will not like the code generated. Try the site in IE and Firefox and any others you feel will be used to visit your site. If you have only a few minor errors and it displays fine, you don't need to pull your hair out.
     

    "Hokey religions and ancient weapons are no match for a good blaster at your side."
  • Re: My site runs with 723 errors - how?

    03-17-2008, 4:13 PM
    Answer
    • Member
      669 point Member
    • ClayShannon
    • Member since 11-09-2007, 11:51 AM
    • Oconomowocowocowoc, WI
    • Posts 1,154

    anthonypj:

    well looks like asp.net defualt genrates a div tag when rendering the girdview control , so do not place inside <p></p> tags rather place the girdview control outside your <p></p> tags ... are you using css adapters with your gridview control ?

    Great, stripping out the paragraph tags in question solved it. My html now validates as fully compliant.

    Clay Shannon
    www.lulu.com/blackbirdcraven
    www.bclayshannon.photoshop.com
  • Re: My site runs with 723 errors - how?

    03-17-2008, 4:14 PM
    Answer
    • Member
      669 point Member
    • ClayShannon
    • Member since 11-09-2007, 11:51 AM
    • Oconomowocowocowoc, WI
    • Posts 1,154

    DarthSwian:

     The div is generated by the gridview.

     I would not get so crazy about the WC3 errors. .Net generates html code for a lot of the elements and the WC3 will not like the code generated. Try the site in IE and Firefox and any others you feel will be used to visit your site. If you have only a few minor errors and it displays fine, you don't need to pull your hair out.
     

    That's basically the way I was looking at it, too, but I would much rather have it validate fully (which it now does) than otherwise. You (all) might be interested in this discussion of the web standards issue (the "Martian Headsets" article/blog):

    http://www.joelonsoftware.com/

    Clay Shannon
    www.lulu.com/blackbirdcraven
    www.bclayshannon.photoshop.com
Page 2 of 2 (21 items) < Previous 1 2