using System;
using System.Web.Configuration;
using System.Collections.Generic;
public class ProductCollection
{
public List GetProducts()
{
List products = new List();
products.Add("A");
products.Add("B");
products.Add("C");
return products;
}
}
File: index.aspx
<%@ Page Language="C#" %>
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Show Product Collection
File: Web.config
connectionString="Data Source=.\SQLEXPRESS;
AttachDbFilename=|DataDirectory|MyDatabase.mdf;Integrated Security=True;User Instance=True" />