By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,726 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

check if file exists on user machine

P: n/a
Hi,
In my aspx page I need to check if the file (I know the full path of
this file) exists on user machine.
How to do this?
Thanks!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
You can't, this would present a huge security risk.

--
Philip Q
Microsoft MVP [ASP.NET]

"Galina Grechka" <ga****@datatracplus.com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Hi,
In my aspx page I need to check if the file (I know the full path of
this file) exists on user machine.
How to do this?
Thanks!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #2

P: n/a
use File.Exists Method

"Galina Grechka" wrote:
Hi,
In my aspx page I need to check if the file (I know the full path of
this file) exists on user machine.
How to do this?
Thanks!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #3

P: n/a
That's for server, not for client.

Eliyahu

"Rulin Hong" <Ru*******@discussions.microsoft.com> wrote in message
news:DE**********************************@microsof t.com...
use File.Exists Method

"Galina Grechka" wrote:
Hi,
In my aspx page I need to check if the file (I know the full path of
this file) exists on user machine.
How to do this?
Thanks!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #4

P: n/a


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.