protected void Page_Load(object sender, EventArgs e)
{
DataSet ds = new DataSet();
ds.ReadXml(Server.MapPath(@"C:\Users\Raymond\Documents\Visual Studio 2010\WebSites\WebSite17\XMLFile.xml"));
Repeater1.DataSource= ds;
Repeater1.DataBind();
}
我收到错误消息:
C:/Users/Raymond/Documents/Visual Studio 2010/WebSites/WebSite17/XMLFile.xml'是物理路径,但应该是虚拟路径。