xml文件读取后绑定到gridview-成都快上网建站

xml文件读取后绑定到gridview

  DataSet ds = new DataSet();
            string filePath = FileUpload1.PostedFile.FileName.ToString();
            try
            {
                if (filePath == " ")
                {
                    Response.Write("");
                }
                else
                {
                    ds.ReadXml(filePath);
                    gvPersonList.DataSource = ds.Tables[0];
                    gvPersonList.DataBind();
                } 
            }
            catch(Exception)
            {
                Response.Write("");
            }


当前文章:xml文件读取后绑定到gridview
当前地址:http://kswjz.com/article/ggodjp.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流