Could not find file "C:\WINDOWS\system32\
Hi all,
I have a site I've been on for a while. Users should be able to upload XML files. To get this done, I used the FileUpload control in vs2000 like this.
INPUT id="upload" type="file" runat="server">
I also added this code to bind that XML data in datagrid in the code-behind page:
conDB.Open()
Dim reportData As New DataSet()
strFileName = upload.PostedFile.FileName
'reportData.ReadXml(Server.MapPath(strFileName))
reportData.ReadXml(strFileName)
GridView1.DataSource = reportData
GridView1.DataBind()
conDB.Close()
The problem is when I try to do the upload a file(KPMCLT0001_shg_memberloan_Jan12.xml) from my local system, It give the error -
Could not find file "C:\WINDOWS\system32\KPMCLT0001_plf_memberwise_Jan12.xml".
Any idea Post solution For this post