PC Review


Reply
Thread Tools Rate Thread

Access Clickonce from ASP.NET application

 
 
nick.althoff@gmail.com
Guest
Posts: n/a
 
      18th Sep 2006
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!

 
Reply With Quote
 
 
 
 
bruce barker \(sqlwork.com\)
Guest
Posts: n/a
 
      18th Sep 2006
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)


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!
>



 
Reply With Quote
 
Laurent Bugnion
Guest
Posts: n/a
 
      18th Sep 2006
Hi,

(E-Mail Removed) 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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ClickOnce application and Application Assembly Path CraigH Microsoft Dot NET Framework Forms 1 11th Feb 2009 10:49 AM
ClickOnce application and Application Assembly Path CraigH Microsoft Dot NET Framework Forms 0 4th Feb 2009 03:02 PM
.application files for clickonce? =?Utf-8?B?QmVu?= Microsoft Dot NET 0 22nd Mar 2007 04:58 PM
Application.Restart on ClickOnce Deployed Application =?Utf-8?B?TmVpbEc=?= Microsoft Dot NET Framework Forms 0 5th May 2006 01:10 PM
ClickOnce application and availability? =?Utf-8?B?a292YWM=?= Microsoft VB .NET 0 24th Mar 2006 08:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:11 PM.