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

Access Clickonce from ASP.NET application

P: n/a
I'm developing an ASP.NET application where I'll need to be accessing
some files on the client machine. I basically need to show information
about files in a directory on the client machine in a datagrid. I was
thinking that the best approach for this would be to write an ActiveX
control, but I was wondering if anyone had any luck developing a click
once application and accessing that from an ASP.NET page. The purpose
of that would be to call into the click once application to aquire
information about the file directory to display in the ASP.NET
datagrid. Any suggestions? Thanks!

Sep 18 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
a standard click once (or .net based active/x control) will not have
permission to do this. they will have to be installed locally, and have the
user update the permissions, or trust your site.

-- bruce (sqlwork.com)
<ni**********@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
I'm developing an ASP.NET application where I'll need to be accessing
some files on the client machine. I basically need to show information
about files in a directory on the client machine in a datagrid. I was
thinking that the best approach for this would be to write an ActiveX
control, but I was wondering if anyone had any luck developing a click
once application and accessing that from an ASP.NET page. The purpose
of that would be to call into the click once application to aquire
information about the file directory to display in the ASP.NET
datagrid. Any suggestions? Thanks!

Sep 18 '06 #2

P: n/a
Hi,

ni**********@gmail.com wrote:
I'm developing an ASP.NET application where I'll need to be accessing
some files on the client machine. I basically need to show information
about files in a directory on the client machine in a datagrid. I was
thinking that the best approach for this would be to write an ActiveX
control, but I was wondering if anyone had any luck developing a click
once application and accessing that from an ASP.NET page. The purpose
of that would be to call into the click once application to aquire
information about the file directory to display in the ASP.NET
datagrid. Any suggestions? Thanks!
To continue a little on Bruce's reply, even client-side JavaScript is
able to access the client's file system *if the permissions are given*.
That's the whole trick. You won't gain anything more by using ActiveX or
ClickOnce.

See this demo writing files to the local disk using plain javascript:
http://www.galasoft-lb.ch/myjavascri...rer/index.html

In normal scenario, accessing the file system is just not possible
because of the security sandbox.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Suppor children in Calcutta: http://www.calcutta-espoir.ch
Sep 18 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.