Lecture11

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: erver" /> Web.sitemap <siteMap> <siteMapNode title="Home" description="" url="default.aspx"> <siteMapNode title="Training" url="Training.aspx" description="Training for .NET developers"> <siteMapNode title="Programming .NET" url="Classes.aspx?id=1" description="All about the .NET Framework" /> <siteMapNode title="Programming ASP.NET" url="Classes.aspx?id=2" description="All about ASP.NET" /> <siteMapNode title="Programming Web Services" url="Classes.aspx?id=3" description="All about Web services" /> </siteMapNode> <siteMapNode title="Consulting" url="Consulting.aspx" description="Consulting for .NET projects" /> <siteMapNode title="Debugging" url="Debugging.aspx" description="Help when you need it the most" /> </siteMapNode> </siteMap> 18 Site Navigation – Menu and SiteMap <asp:SiteMapDataSource ID="SiteMap" RunAt="server" /> <asp:Menu DataSourceID="SiteMap" RunAt="server" /> Web.sitemap <siteMap> <siteMapNode title="Home" description="" url="default.aspx"> <siteMapNode title="Training" url="Training.aspx" description="Training for .NET developers"> <siteMapNode title="Programming .NET" url="Classes.aspx?id=1" description="All about the .NET Framework" /> <siteMapNode title="Programming ASP.NET" url="Classes.aspx?id=2" description="All about ASP.NET" /> <siteMapNode title="Programming Web Services" url="Classes.aspx?id=3" description="All about Web services" /> </siteMapNode> <siteMapNode title="Consulting" url="Consulting.aspx" description="Consulting for .NET projects" /> <siteMapNode title="Debugging" url="Debugging.aspx" description="Help when you need it the most" /> </siteMapNode> </siteMap> ASP.NET Data Binding 19 ASP.NET Data Binding Data source controls Data controls GridView, DetailsView, ListView controls Editing with GridView, DetailsView, ListView Simplified Data Binding Data binding expressions are now simpler <!-- ASP.NET 1.x data binding expression --> <%# DataBinder.Eval (Container.DataItem, "Price") %> <!-- Equivalent ASP.NET 2.0 data binding expression --> <%# Eval ("Price") %> 20 DataSource Controls Declarative (no-code) data binding Name Description SqlDataSource dataConnects data-binding controls to SQL databases AccessDataSource dataConnects data-binding controls to Access databases XmlDataSource dataConnects data-binding controls to XML data ObjectDataSource dataConnects data-binding controls to data components SiteMapDataSource Connects site navigation controls to site map data SqlDataSource Declarative data binding to SQL databases Any database served by a managed provider Two-way data binding SelectCommand defines query semantics InsertCommand, UpdateCommand, and DeleteCommand define update semantics Optional caching of query results Parameterized operation 21 Using SqlDataSource <asp:SqlDataSource ID="Titles" RunAt="server" Conn...
View Full Document

This note was uploaded on 04/04/2014 for the course CS 5950 taught by Professor Staff during the Summer '08 term at Western Michigan.

Ask a homework question - tutors are online