大橙子网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

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
URL网址:http://dzwzjz.com/article/ggodjp.html
在线咨询
服务热线
服务热线:028-86922220
TOP