set home page
Added to the favorites
All articles(网络文学目录)
All Pictures(图片目录)
All Softwares(软件目录)
ASP.NET2.0:使用GridView绑定XmlDocument对象_[Asp.Net教程]
Writer:
delv
Article type:
Programming skills(编程技巧)
Time:
2014/1/23 3:10:41
Browse times:
404
Comment times:
0
ASP.NET2.0:使用GridView绑定XmlDocument对象_[Asp.Net教程]
Head photo
Go homepage
Upload pictures
Write articles
ASP.NET2.0:使用GridView绑定XmlDocument对象_[Asp.Net教程]
ASP.NET 2.0提供了多种数据源,一般情况下,XmlDataSource控件使用XML文件,下面的例子就是使用XmlDocument对象进行数据绑定的一种方法。
VB.NET代码
<%@ Page Language="VB" %>
<%#XPath("title")%>
[<%#CType(XPath("pubDate"), DateTime).ToString("yyyy年M月d日")%>]
C#代码
<%@ Page Language="C#" AutoEventWireup="true"%>
<%#XPath("title")%>
[<%#(DateTime.Parse(XPath("pubDate").ToString().Replace("GMT",""))).ToString("yyyy年M月d日")%>]
There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)
Comments can't is empty(评论不能为空)
Disclaimer
Privacy Policy
About us
Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.