html syntax question

Discussion in 'ASP .Net' started by Samuel Shulman, May 22, 2006.

  1. Please view the code below
    I get the following error: Per the active schema, the element 'li' cannot be
    nested within 'div'.

    Why?


    Thanks
    Samuel


    <%@ Page Language="vb" AutoEventWireup="false"
    Codebehind="SelectState.aspx.vb" Inherits="EsarWeb.SelectState"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <title>SelectState</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    <meta name="vs_defaultClientScript" content="JavaScript">
    <meta name="vs_targetSchema"
    content="http://schemas.microsoft.com/intellisense/ie5">
    </HEAD>
    <body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
    <DIV style="DISPLAY: inline; Z-INDEX: 101; LEFT: 96px; WIDTH: 584px;
    POSITION: absolute; TOP: 32px; HEIGHT: 312px"
    ms_positioning="FlowLayout">Label
    <asp:Repeater id="Repeater1" runat="server">
    <ItemTemplate>
    <li>

    <%# DataBinder.Eval(Container,"DataItem.Title")%>
    </li>
    </ItemTemplate>
    <AlternatingItemTemplate>
    <font color="green">
    <%# DataBinder.Eval(Container,"DataItem.Title")%>
    </font>
    </AlternatingItemTemplate>
    </asp:Repeater></DIV>
    </form>
    </body>
    </HTML>
     
    Samuel Shulman, May 22, 2006
    #1
    1. Advertising

  2. It does work but I still get the error only in the IDE

    btw, is there a more sensible editor for html?



    "Samuel Shulman" <> wrote in message
    news:...
    > Please view the code below
    > I get the following error: Per the active schema, the element 'li' cannot
    > be nested within 'div'.
    >
    > Why?
    >
    >
    > Thanks
    > Samuel
    >
    >
    > <%@ Page Language="vb" AutoEventWireup="false"
    > Codebehind="SelectState.aspx.vb" Inherits="EsarWeb.SelectState"%>
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    > <HTML>
    > <HEAD>
    > <title>SelectState</title>
    > <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    > <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    > <meta name="vs_defaultClientScript" content="JavaScript">
    > <meta name="vs_targetSchema"
    > content="http://schemas.microsoft.com/intellisense/ie5">
    > </HEAD>
    > <body MS_POSITIONING="GridLayout">
    > <form id="Form1" method="post" runat="server">
    > <DIV style="DISPLAY: inline; Z-INDEX: 101; LEFT: 96px; WIDTH: 584px;
    > POSITION: absolute; TOP: 32px; HEIGHT: 312px"
    > ms_positioning="FlowLayout">Label
    > <asp:Repeater id="Repeater1" runat="server">
    > <ItemTemplate>
    > <li>
    >
    > <%# DataBinder.Eval(Container,"DataItem.Title")%>
    > </li>
    > </ItemTemplate>
    > <AlternatingItemTemplate>
    > <font color="green">
    > <%# DataBinder.Eval(Container,"DataItem.Title")%>
    > </font>
    > </AlternatingItemTemplate>
    > </asp:Repeater></DIV>
    > </form>
    > </body>
    > </HTML>
    >
    >
     
    Samuel Shulman, May 22, 2006
    #2
    1. Advertising

  3. Samuel Shulman

    Bob Lehmann Guest

    >> is there a more sensible editor for html?

    By sensible, do you mean one that will let write invalid HTML without
    warning you?

    Where is your <ul> tag?

    Bob Lehmann

    "Samuel Shulman" <> wrote in message
    news:...
    > It does work but I still get the error only in the IDE
    >
    > btw, is there a more sensible editor for html?
    >
    >
    >
    > "Samuel Shulman" <> wrote in message
    > news:...
    > > Please view the code below
    > > I get the following error: Per the active schema, the element 'li'

    cannot
    > > be nested within 'div'.
    > >
    > > Why?
    > >
    > >
    > > Thanks
    > > Samuel
    > >
    > >
    > > <%@ Page Language="vb" AutoEventWireup="false"
    > > Codebehind="SelectState.aspx.vb" Inherits="EsarWeb.SelectState"%>
    > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    > > <HTML>
    > > <HEAD>
    > > <title>SelectState</title>
    > > <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    > > <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    > > <meta name="vs_defaultClientScript" content="JavaScript">
    > > <meta name="vs_targetSchema"
    > > content="http://schemas.microsoft.com/intellisense/ie5">
    > > </HEAD>
    > > <body MS_POSITIONING="GridLayout">
    > > <form id="Form1" method="post" runat="server">
    > > <DIV style="DISPLAY: inline; Z-INDEX: 101; LEFT: 96px; WIDTH: 584px;
    > > POSITION: absolute; TOP: 32px; HEIGHT: 312px"
    > > ms_positioning="FlowLayout">Label
    > > <asp:Repeater id="Repeater1" runat="server">
    > > <ItemTemplate>
    > > <li>
    > >
    > > <%# DataBinder.Eval(Container,"DataItem.Title")%>
    > > </li>
    > > </ItemTemplate>
    > > <AlternatingItemTemplate>
    > > <font color="green">
    > > <%# DataBinder.Eval(Container,"DataItem.Title")%>
    > > </font>
    > > </AlternatingItemTemplate>
    > > </asp:Repeater></DIV>
    > > </form>
    > > </body>
    > > </HTML>
    > >
    > >

    >
    >
     
    Bob Lehmann, May 23, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. gabriele renzi
    Replies:
    2
    Views:
    221
    gabriele renzi
    Dec 31, 2005
  2. Ken Bloom
    Replies:
    3
    Views:
    224
  3. Good Night Moon
    Replies:
    9
    Views:
    291
    Rick DeNatale
    Jul 25, 2007
  4. Jacob Grover
    Replies:
    5
    Views:
    326
    Jacob Grover
    Jul 18, 2008
  5. Mark Richards
    Replies:
    3
    Views:
    324
    Tad McClellan
    Nov 18, 2007
Loading...

Share This Page