@ 代码
Dim db = Database.Open("SmallBakery")
Dim query = "SELECT * FROM Product"
Dim data = db.Query(query)
Dim grid = new WebGrid(data)
结束代码
<html>
<head>
<title>使用 WebGrid 帮助程序显示数据</title>
</head>
<body>
<h1>小面包店产品</h1>
<div id="grid">
@grid.GetHtml()
</div>
</body>
</html>