WebForm3.aspx
在html 页面中只有这一句哦;
不能有任何HTML标签
C#
下面是读取RSS的方法
if(! this.IsPostBack)
{
string strURL="http://localhost/DataGridPage/WebForm3.aspx";
XmlTextReader reader=new XmlTextReader(strURL);
DataSet ds=new DataSet();
ds.ReadXml(reader);
this.DataGrid1.DataSource=ds.Tables[2];
// this.div.InnerHtml=Server.HtmlDecode(ds.Tables[2].Rows[1]["description"].ToString());
this.DataGrid1.DataBind();
}
{
string strURL="http://localhost/DataGridPage/WebForm3.aspx";
XmlTextReader reader=new XmlTextReader(strURL);
DataSet ds=new DataSet();
ds.ReadXml(reader);
this.DataGrid1.DataSource=ds.Tables[2];
// this.div.InnerHtml=Server.HtmlDecode(ds.Tables[2].Rows[1]["description"].ToString());
this.DataGrid1.DataBind();
}