TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rajkumar R
NA
183
219.5k
Could not find file "C:\WINDOWS\system32\
Mar 17 2012 2:15 AM
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
Reply
Answers (
2
)
Abstract class and Interface
Using input parameter with Enum value