ASP.NET HTML 控件 DataList
asp.net html 控件 datalist
<%@ import namespace="system.data" %>
<script runat="server">
sub page_load
if not page.ispostback then
dim mycdcatalog=new dataset
mycdcatalog.readxml(mappath("cdcatalog.xml"))
cdcatalog.datasource=mycdcatalog
cdcatalog.databind()
end if
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<asp:datalist
id="cdcatalog"
gridlines="both"
runat="server">
<headertemplate>
my cd catalog
</headertemplate>
<itemtemplate>
"<%#container.dataitem("title")%>" of <%#container.dataitem("artist")%> - $<%#container.dataitem("price")%>
</itemtemplate>
<footertemplate>
© hege refsnes
</footertemplate>
</asp:datalist>
</form>
</body>
</html>
<script runat="server">
sub page_load
if not page.ispostback then
dim mycdcatalog=new dataset
mycdcatalog.readxml(mappath("cdcatalog.xml"))
cdcatalog.datasource=mycdcatalog
cdcatalog.databind()
end if
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<asp:datalist
id="cdcatalog"
gridlines="both"
runat="server">
<headertemplate>
my cd catalog
</headertemplate>
<itemtemplate>
"<%#container.dataitem("title")%>" of <%#container.dataitem("artist")%> - $<%#container.dataitem("price")%>
</itemtemplate>
<footertemplate>
© hege refsnes
</footertemplate>
</asp:datalist>
</form>
</body>
</html>
相关文章
- ASP.NET Web Pages 教程
- ASP.NET Web Pages 文件
- ASP.NET Web Pages Database 参考手册
- ASP.NET WebPages 帮助器参考手册
- ASP.NET Razor 标记
- ASP.NET Razor C# 循环和数组
- ASP.NET MVC 简介
- ASP.NET MVC 数据库
- ASP.NET 服务器控件
- ASP.NET ViewState
- ASP.NET XML 数据绑定
- ASP.NET Validation 服务器控件
- ASP.NET Calendar 控件
- ASP.NET XML 控件
- WebSecurity ConfirmAccount 方法
- WebSecurity CreateUserAndAccount 方法
- WebSecurity UserExists 方法
- HTML Button
- HTML InputRadiobutton
- Button