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"
runat="server"
cellpadding="2"
cellspacing="2"
borderstyle="inset"
backcolor="#e8e8e8"
width="100%"
headerstyle-font-name="verdana"
headerstyle-font-size="12pt"
headerstyle-horizontalalign="center"
headerstyle-font-bold="true"
itemstyle-backcolor="#778899"
itemstyle-forecolor="#ffffff"
alternatingitemstyle-backcolor="#e8e8e8"
alternatingitemstyle-forecolor="#000000"
footerstyle-font-size="9pt"
footerstyle-font-italic="true">
<headertemplate>
my cd catalog
</headertemplate>
<itemtemplate>
"<%#container.dataitem("title")%>" of <%#container.dataitem("artist")%> - $<%#container.dataitem("price")%>
</itemtemplate>
<alternatingitemtemplate>
"<%#container.dataitem("title")%>" of <%#container.dataitem("artist")%> - $<%#container.dataitem("price")%>
</alternatingitemtemplate>
<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"
runat="server"
cellpadding="2"
cellspacing="2"
borderstyle="inset"
backcolor="#e8e8e8"
width="100%"
headerstyle-font-name="verdana"
headerstyle-font-size="12pt"
headerstyle-horizontalalign="center"
headerstyle-font-bold="true"
itemstyle-backcolor="#778899"
itemstyle-forecolor="#ffffff"
alternatingitemstyle-backcolor="#e8e8e8"
alternatingitemstyle-forecolor="#000000"
footerstyle-font-size="9pt"
footerstyle-font-italic="true">
<headertemplate>
my cd catalog
</headertemplate>
<itemtemplate>
"<%#container.dataitem("title")%>" of <%#container.dataitem("artist")%> - $<%#container.dataitem("price")%>
</itemtemplate>
<alternatingitemtemplate>
"<%#container.dataitem("title")%>" of <%#container.dataitem("artist")%> - $<%#container.dataitem("price")%>
</alternatingitemtemplate>
<footertemplate>
© hege refsnes
</footertemplate>
</asp:datalist>
</form>
</body>
</html>
相关文章
- ASP.NET Web Pages HTML 表单
- ASP.NET Web Pages 文件
- ASP.NET Web Pages PHP
- ASP.NET Web Pages 类参考手册
- ASP.NET Web Pages Database 参考手册
- ASP.NET MVC Web 应用程序
- ASP.NET MVC HTML 帮助器
- ASP.NET MVC – 发布
- ASP.NET MVC 参考手册
- ASP.NET Web 表单
- ASP.NET TextBox 控件
- ASP.NET 母版页
- ASP.NET 实例
- ASP.NET ValidationSummary 控件
- ASP.NET CheckBox 控件
- WebSecurity CreateAccount 方法
- WebSecurity CreateUserAndAccount 方法
- WebSecurity InitializeDatabaseConnection 方法
- HTML Image 2
- HTML InputImage