Manish Tewatia

Manish Tewatia

  • 20
  • 48.2k
  • 3.3m

How to add XML as menu items in ASP.NET.

Apr 1 2011 1:49 AM
I want to add a xml in my menu items I write this code but there is something missing in this code plz help.

<%@ Page Language="C#" %>

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"

 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" >

        <head id="Head1" runat="server">

            <title>list.xml</title>

        </head>

        <body>

            <form id="form1" runat="server">

                <div>

                     

                    <asp:XmlDataSource

        DataSourceID="srclist"

        id="srclist"

        DataFile="~/Data.xml"

        Runat="server" />

                         

                </div>

            </form>

        </body>

    </html>


Answers (1)