下面为我的代码,可它提示“系统找不到指定的文件”(红色部分)。请大家指教指教!
<%@ Page Language="C#" AutoEventWireup="false" CodeFile="gaoqiang.aspx.cs"  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script language="c#" runat="server">
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml;
using System.Xml.XPath;
public partial class _Default : System.Web.UI.Page
{
    public string[] y = new string[4];
    protected void Page_Load(object sender, EventArgs e)
    {
        XmlDocument xmlDoc = new XmlDocument();
        xmlDoc.Load(Server.MapPath("Table.xml"));//你的xml文件
        XmlNodeList xmlList = xmlDoc.SelectSingleNode("MapSheet").ChildNodes;
        foreach (XmlNode xmlNo in xmlList)
        {
            //XmlNodeList xe = (XmlNodeList)xmlNo;
            XmlElement xe = (XmlElement)xmlNo;
            {
                if (xe.Name == "TableName")
                {
                    y[0] = xe.InnerText;
                }
                if (xe.Name == "DataSource")
                {
                    y[1] = xe.InnerText;
                }
                if (xe.Name == "UserName")
                {
                    y[2] = xe.InnerText;
                }
                if (xe.Name == "Password")
                {
                    y[3] = xe.InnerText;
                }
            }
        }
        TextBox1.Text=y[0];
        TextBox2.Text = y[1];
        TextBox3.Text = y[2];
        TextBox4.Text = y[3];
    }
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>

 
											





 
	    



