软讯网络 > 网站建设 > ASP.NET > Nested DataLists (C# Version)
【标 题】:Nested DataLists (C# Version)
【关键字】:
C#,C,io,Nested,DataLists,Version
【来 源】:http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=nestedc
Nested DataLists (C# Version)
Code Sample for
Nested DataLists (C# Version)
Sometimes, we need to nest data - say for instance - List the Categories, and under each Category, list the Products for that particular Category.
This sample uses the SQL Managed Provider to show exactly that, using the Categories and Products tables from the NorthWind Database.
As usual, just copy this code directly into a new page, change the database/connection information to match your system, and run it from your own computer.
You can read a Tutorial about this code here.
Thanks to Mike Houston for this code sample
http://www.nexus6studio.com
See this code in VB.Net
--------------------------------------------------------------------------------
Here's the Code:
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
Nested Datalists Using C#
【相关文章】
没有相关文章