Site map & web

425 views

Published on

Site Map

Published in: Technology, Travel
  • Be the first to comment

  • Be the first to like this

Site map & web

  1. 1. Site MapSite MapSite MapSite Map A . Antony Alex MCAA . Antony Alex MCA Dr G R D College of Science – CBE Tamil Nadu - India
  2. 2. File : Web.sitemap ◦ XML File◦ XML File <siteMap > <siteMapNode url="" title="" description=""> <siteMapNode url="" title="" description="" /><siteMapNode url="" title="" description="" /> <siteMapNode url="" title="" description="" /> </siteMapNode> </siteMap>
  3. 3. NavigationViewNavigationView Tree MenuMenu SiteMapPath
  4. 4. <<asp:SiteMapDataSourceasp:SiteMapDataSource id="site"id="site" runatrunat="server" />="server" /> <asp:TreeView ID="TreeView1"<asp:TreeView ID="TreeView1" runat="server" DataSourceID="site" /> <asp:Menu ID="Menu1" runat="server" DataSourceID="site">DataSourceID="site"> <asp:SiteMapPath ID="SiteMapPath1" runat="server" ></asp:SiteMapPath>
  5. 5. <siteMapNode siteMapFile="MySiteMap.sitemap"/>siteMapFile="MySiteMap.sitemap"/>
  6. 6. Global ConnectionGlobal ConnectionGlobal ConnectionGlobal Connection usingusing WEB.CONFIGWEB.CONFIG
  7. 7. <connectionStrings> WEB.CONFIG <add name="GRDCSConnectionString" connectionString="Data Source=ANTONY- SERVERSQLEXPRESS;Initial Catalog=grdcs;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings>
  8. 8. Dim mycon = New SqlConnection(ConfigurationManager.ConnectionStrings("GR DCSConnectionString").ConnectionString) Dim ds As DataSet = New DataSet Dim cmd As SqlDataAdapter = New SqlDataAdapter("select * from Student", mycon) cmd.Fill(ds, "Student") GridView1.DataSource = ds.Tables("Student")GridView1.DataSource = ds.Tables("Student") GridView1.DataBind()
  9. 9. Thank UThank U

×