Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

My fileopen statement runs fine when I'm running the vb.net asp app from my c drive. but when I run the app on a server, openfile does not seem to understand the text of the filepath.txt.

 

filepath = "c:\slic\validation_file.txt"

 

I'm thinking VB is trying to look at the C drive of the server the *.ASPx files sit on, thus not able to pick up the file from my own c drive.

 

Any idea on filepath on c drives?

 

FileOpen(1, FilePath.Text, OpenMode.Input)

Posted
ASP.Net is a server side technology and cannot just access your local drives' date=' imagine the security implications if any web application could open any of your local files.[/quote']

 

I see your point.

 

In general, I'm trying to access a txt file on the users hard drive which the users will be selecting via dialog box. From there I'm trying to get the vb.net asp app to open the file and read through it checking for errors.

Do you see any way this can be done, or any third party control that can handle this ?

 

Thanks for your time.

 

Adam

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...