473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Web page run local app

I need to build a web site that can automatically download a file from
the server to the users local C: drive and then open the file in Word
on the local PC)

How can I do this ?

If i write a vb program to do the download, howto I link this to the
web site / web page?

any ideas PLEASE .

thank you
Jul 10 '07 #1
10 1986
This is not possible (for safety reasons or unless you are allowed to modify
the behavior). You could have the user click on the link and they could then
choose to save (where the want) or open the file. Is this enough ?

If you target enterprise controlled computer you could deploy an ActiveX
control, a Java applet or a .NET control that would be allowed to do that
(or use the network ?)...

--
Patrice

"Garry" <ma**@garry.park.namea écrit dans le message de news:
bo********************************@4ax.com...
>I need to build a web site that can automatically download a file from
the server to the users local C: drive and then open the file in Word
on the local PC)

How can I do this ?

If i write a vb program to do the download, howto I link this to the
web site / web page?

any ideas PLEASE .

thank you

Jul 10 '07 #2
thanks for your reply.

i thinka .NET control is the way forward. Is there anywhere I can get
a sample of how to integrate a simple .NET control into a web page, to
preform a local task. Also, how to download the .NET control to the
local PC?

Garry

On Tue, 10 Jul 2007 15:28:30 +0200, "Patrice"
<http://www.chez.com/scribe/wrote:
>This is not possible (for safety reasons or unless you are allowed to modify
the behavior). You could have the user click on the link and they could then
choose to save (where the want) or open the file. Is this enough ?

If you target enterprise controlled computer you could deploy an ActiveX
control, a Java applet or a .NET control that would be allowed to do that
(or use the network ?)...
Jul 10 '07 #3
You may still want to consider this as I'm not sure to see what is the added
value i.e. if you do this the "normal" way :
- the user will choose if the file should be saved (and at which location)
or opened (it is then written in a local temp directory before being opened)

With the other solution, the only added value I see is that :
- the user will not be prompted (which is also a risk)
- it will be saved at a program defined location

For this you'll need to have the user to download/accept a java applet,
activex control, .NET control (and you need to have the Java Virutal
machine, the .NET framework or whatever technology you relly on to be
installed client side plus to deploy a security policy or have the user to
allows those operations).

They are hosted in a page using the applet or object tag. For example
http://aspnet.4guysfromrolla.com/articles/052604-1.aspx.

For now I'm really not sure it"'s worth the trouble and I would just keep
the usual behavior. Are you familiar with this ? Have you already tried an
anchor link ?

You may want also to explain a bit what you are trying to do. Sometimes
having the whole picture raises better suggestions (for example if you want
to perform many local tasks you could perhaps then have just a local
application that talks with web services or some other solution etc)...

---
Patrice

"Garry" <ma**@garry.park.namea écrit dans le message de news:
lm********************************@4ax.com...
thanks for your reply.

i thinka .NET control is the way forward. Is there anywhere I can get
a sample of how to integrate a simple .NET control into a web page, to
preform a local task. Also, how to download the .NET control to the
local PC?

Garry

On Tue, 10 Jul 2007 15:28:30 +0200, "Patrice"
<http://www.chez.com/scribe/wrote:
>>This is not possible (for safety reasons or unless you are allowed to
modify
the behavior). You could have the user click on the link and they could
then
choose to save (where the want) or open the file. Is this enough ?

If you target enterprise controlled computer you could deploy an ActiveX
control, a Java applet or a .NET control that would be allowed to do that
(or use the network ?)...

Jul 10 '07 #4
Hi Pratice i have tried the link you gave . for some reason i cannot
add a dll file to the toolbox of the ASP.NET website project.
would you have any ideas
thanks for your help
On Tue, 10 Jul 2007 18:29:21 +0200, "Patrice"
<http://www.chez.com/scribe/wrote:
>You may still want to consider this as I'm not sure to see what is the added
value i.e. if you do this the "normal" way :
- the user will choose if the file should be saved (and at which location)
or opened (it is then written in a local temp directory before being opened)

With the other solution, the only added value I see is that :
- the user will not be prompted (which is also a risk)
- it will be saved at a program defined location

For this you'll need to have the user to download/accept a java applet,
activex control, .NET control (and you need to have the Java Virutal
machine, the .NET framework or whatever technology you relly on to be
installed client side plus to deploy a security policy or have the user to
allows those operations).

They are hosted in a page using the applet or object tag. For example
http://aspnet.4guysfromrolla.com/articles/052604-1.aspx.

For now I'm really not sure it"'s worth the trouble and I would just keep
the usual behavior. Are you familiar with this ? Have you already tried an
anchor link ?

You may want also to explain a bit what you are trying to do. Sometimes
having the whole picture raises better suggestions (for example if you want
to perform many local tasks you could perhaps then have just a local
application that talks with web services or some other solution etc)...

---
Patrice

"Garry" <ma**@garry.park.namea écrit dans le message de news:
lm********************************@4ax.com...
>thanks for your reply.

i thinka .NET control is the way forward. Is there anywhere I can get
a sample of how to integrate a simple .NET control into a web page, to
preform a local task. Also, how to download the .NET control to the
local PC?

Garry

On Tue, 10 Jul 2007 15:28:30 +0200, "Patrice"
<http://www.chez.com/scribe/wrote:
>>>This is not possible (for safety reasons or unless you are allowed to
modify
the behavior). You could have the user click on the link and they could
then
choose to save (where the want) or open the file. Is this enough ?

If you target enterprise controlled computer you could deploy an ActiveX
control, a Java applet or a .NET control that would be allowed to do that
(or use the network ?)...
Jul 13 '07 #5

I have created a .NET control in VB. I then created a .NET ASP web
project. I then tried to add this control (.dll) to the web project. I
CANT however drop the the .NET control on the ASP web project. i have
tried to drag & drop on to visual studio 2005 - butwhen i drop the
control, its not there!

Any suggestion plesae.

thanks

On Tue, 10 Jul 2007 18:29:21 +0200, "Patrice"
<http://www.chez.com/scribe/wrote:
>You may still want to consider this as I'm not sure to see what is the added
value i.e. if you do this the "normal" way :
- the user will choose if the file should be saved (and at which location)
or opened (it is then written in a local temp directory before being opened)

With the other solution, the only added value I see is that :
- the user will not be prompted (which is also a risk)
- it will be saved at a program defined location

For this you'll need to have the user to download/accept a java applet,
activex control, .NET control (and you need to have the Java Virutal
machine, the .NET framework or whatever technology you relly on to be
installed client side plus to deploy a security policy or have the user to
allows those operations).

They are hosted in a page using the applet or object tag. For example
http://aspnet.4guysfromrolla.com/articles/052604-1.aspx.

For now I'm really not sure it"'s worth the trouble and I would just keep
the usual behavior. Are you familiar with this ? Have you already tried an
anchor link ?

You may want also to explain a bit what you are trying to do. Sometimes
having the whole picture raises better suggestions (for example if you want
to perform many local tasks you could perhaps then have just a local
application that talks with web services or some other solution etc)...

---
Patrice

"Garry" <ma**@garry.park.namea écrit dans le message de news:
lm********************************@4ax.com...
>thanks for your reply.

i thinka .NET control is the way forward. Is there anywhere I can get
a sample of how to integrate a simple .NET control into a web page, to
preform a local task. Also, how to download the .NET control to the
local PC?

Garry

On Tue, 10 Jul 2007 15:28:30 +0200, "Patrice"
<http://www.chez.com/scribe/wrote:
>>>This is not possible (for safety reasons or unless you are allowed to
modify
the behavior). You could have the user click on the link and they could
then
choose to save (where the want) or open the file. Is this enough ?

If you target enterprise controlled computer you could deploy an ActiveX
control, a Java applet or a .NET control that would be allowed to do that
(or use the network ?)...
Jul 13 '07 #6
You don't drag & drop dll's onto the project.
You add a reference to the dll. VS takes care of the rest.

Also, you can simply copy the dll to the /bin directory of your web app.
That will automagically be recognized by ASP.NET.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Garry" <ma**@garry.park.namewrote in message news:s7********************************@4ax.com...
>
I have created a .NET control in VB. I then created a .NET ASP web
project. I then tried to add this control (.dll) to the web project. I
CANT however drop the the .NET control on the ASP web project. i have
tried to drag & drop on to visual studio 2005 - butwhen i drop the
control, its not there!

Any suggestion plesae.

thanks

On Tue, 10 Jul 2007 18:29:21 +0200, "Patrice"
<http://www.chez.com/scribe/wrote:
>>You may still want to consider this as I'm not sure to see what is the added
value i.e. if you do this the "normal" way :
- the user will choose if the file should be saved (and at which location)
or opened (it is then written in a local temp directory before being opened)

With the other solution, the only added value I see is that :
- the user will not be prompted (which is also a risk)
- it will be saved at a program defined location

For this you'll need to have the user to download/accept a java applet,
activex control, .NET control (and you need to have the Java Virutal
machine, the .NET framework or whatever technology you relly on to be
installed client side plus to deploy a security policy or have the user to
allows those operations).

They are hosted in a page using the applet or object tag. For example
http://aspnet.4guysfromrolla.com/articles/052604-1.aspx.

For now I'm really not sure it"'s worth the trouble and I would just keep
the usual behavior. Are you familiar with this ? Have you already tried an
anchor link ?

You may want also to explain a bit what you are trying to do. Sometimes
having the whole picture raises better suggestions (for example if you want
to perform many local tasks you could perhaps then have just a local
application that talks with web services or some other solution etc)...

---
Patrice

"Garry" <ma**@garry.park.namea écrit dans le message de news:
lm********************************@4ax.com...
>>thanks for your reply.

i thinka .NET control is the way forward. Is there anywhere I can get
a sample of how to integrate a simple .NET control into a web page, to
preform a local task. Also, how to download the .NET control to the
local PC?

Garry

On Tue, 10 Jul 2007 15:28:30 +0200, "Patrice"
<http://www.chez.com/scribe/wrote:

This is not possible (for safety reasons or unless you are allowed to
modify
the behavior). You could have the user click on the link and they could
then
choose to save (where the want) or open the file. Is this enough ?

If you target enterprise controlled computer you could deploy an ActiveX
control, a Java applet or a .NET control that would be allowed to do that
(or use the network ?)...

Jul 13 '07 #7
"Onder" <on*********@dictatenow.comwrote in message
news:c6********************************@4ax.com...
We want it to be downloaded automatically so that they can run it from
their local machine. we dont want the users to click download then
browse then save it. we want it to be saved automatically to a
directory that we define
You have (almost) no chance of doing that. The whole architecture of web
applications is designed to prevent precisely this sort of behaviour.
Imagine how much fun virus and trojan writers could have if it were possible
for them to download a file onto a user's machine into a directory of their
choice and then run that file, all without any interaction from the user...

I would strongly urge you to rethink your design...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 13 '07 #8
"Garry" <ma**@garry.park.namewrote in message
news:r1********************************@4ax.com...
I dont want the user to Browse, Upload or Save.
In which case, you've chosen the wrong solution for your application...
I need code running locally.
You have (almost) no chance of doing that. The whole architecture of web
applications is designed to prevent precisely this sort of behaviour.
Imagine how much fun virus and trojan writers could have if it were possible
for them to download a file onto a user's machine into a directory of their
choice and then run that file, without any interaction from the user...

I would strongly urge you to rethink your design...
this will be just for our clients - not the public visiting our web site.
In which case, I'd stay with WinForms...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 13 '07 #9
Not sure to understand. If you want to run a control client side you don't
have to add it to the project. It is just a DLL that will be read by the
page so that you can run client side (using an object tag)

This is opposed to ASP.NET server side controls that are running server side
to generate the HTML markup that will be sent to the client.
--
Patrice
"Garry" <ma**@garry.park.namea écrit dans le message de news:
s7********************************@4ax.com...
>
I have created a .NET control in VB. I then created a .NET ASP web
project. I then tried to add this control (.dll) to the web project. I
CANT however drop the the .NET control on the ASP web project. i have
tried to drag & drop on to visual studio 2005 - butwhen i drop the
control, its not there!

Any suggestion plesae.

thanks

On Tue, 10 Jul 2007 18:29:21 +0200, "Patrice"
<http://www.chez.com/scribe/wrote:
>>You may still want to consider this as I'm not sure to see what is the
added
value i.e. if you do this the "normal" way :
- the user will choose if the file should be saved (and at which location)
or opened (it is then written in a local temp directory before being
opened)

With the other solution, the only added value I see is that :
- the user will not be prompted (which is also a risk)
- it will be saved at a program defined location

For this you'll need to have the user to download/accept a java applet,
activex control, .NET control (and you need to have the Java Virutal
machine, the .NET framework or whatever technology you relly on to be
installed client side plus to deploy a security policy or have the user to
allows those operations).

They are hosted in a page using the applet or object tag. For example
http://aspnet.4guysfromrolla.com/articles/052604-1.aspx.

For now I'm really not sure it"'s worth the trouble and I would just keep
the usual behavior. Are you familiar with this ? Have you already tried an
anchor link ?

You may want also to explain a bit what you are trying to do. Sometimes
having the whole picture raises better suggestions (for example if you
want
to perform many local tasks you could perhaps then have just a local
application that talks with web services or some other solution etc)...

---
Patrice

"Garry" <ma**@garry.park.namea écrit dans le message de news:
lm********************************@4ax.com...
>>thanks for your reply.

i thinka .NET control is the way forward. Is there anywhere I can get
a sample of how to integrate a simple .NET control into a web page, to
preform a local task. Also, how to download the .NET control to the
local PC?

Garry

On Tue, 10 Jul 2007 15:28:30 +0200, "Patrice"
<http://www.chez.com/scribe/wrote:

This is not possible (for safety reasons or unless you are allowed to
modify
the behavior). You could have the user click on the link and they could
then
choose to save (where the want) or open the file. Is this enough ?

If you target enterprise controlled computer you could deploy an ActiveX
control, a Java applet or a .NET control that would be allowed to do
that
(or use the network ?)...

Jul 16 '07 #10
Dear Mark

thank you for your reply.

although I understand your reasoning, I am aware of many other web
sites that download software to enhance their functionality. One such
example is logmein.com - Rescue product, which allows remote control
through a browser. I use this product (which is excellent) - an is a
good example of major enhancemtnts to a browsers functionality.

regards

Garry

On Fri, 13 Jul 2007 18:56:41 +0100, "Mark Rae [MVP]"
<ma**@markNOSPAMrae.netwrote:
>"Garry" <ma**@garry.park.namewrote in message
news:r1********************************@4ax.com.. .
>I dont want the user to Browse, Upload or Save.

In which case, you've chosen the wrong solution for your application...
>I need code running locally.

You have (almost) no chance of doing that. The whole architecture of web
applications is designed to prevent precisely this sort of behaviour.
Imagine how much fun virus and trojan writers could have if it were possible
for them to download a file onto a user's machine into a directory of their
choice and then run that file, without any interaction from the user...

I would strongly urge you to rethink your design...
>this will be just for our clients - not the public visiting our web site.

In which case, I'd stay with WinForms...
Jul 16 '07 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Limey | last post by:
We are working with a vendor who is trying to post some some XML data to us. They are using an ASPX script to post to a PHP page of ours. The problem is that in the PHP page, I cannot find any...
6
by: bissatch | last post by:
Hi, I have been tryin to run free dhtml code from a web page. The web page is: http://dynamicdrive.com/dynamicindex14/pixelate.htm When I load the page above it opens as normal and the...
1
by: alex | last post by:
Hi ! I couldn't make backups with our new system using db2 8.2. Every time I trigger a backup I get this error message: BACKUP DATABASE EBUERO2 ONLINE TO "/raid/backup/ebuero2/part1",...
82
by: Eric Lindsay | last post by:
I have been trying to get a better understanding of simple HTML, but I am finding conflicting information is very common. Not only that, even in what seemed elementary and without any possibility...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
0
by: jason | last post by:
I googled a lot, couldn't find a good solution. Any help is greatly appreciated. What I want to do is: Given a web page in a running IE browser , i want to save an image in this web page to...
2
by: adam | last post by:
Hi ASP Expert, My goal is to retrieve my local machine's %USERNAME% environment variable from ASP page. When I enter http://RemoteServerName/testusername.asp?id=%USERNAME% directly into the IE...
1
by: Alessandro Fachin | last post by:
I write this simply code that should give me the access to private page with htaccess using a proxy, i don't known because it's wrong... import urllib,urllib2 #input url...
1
by: schneider | last post by:
Is it possible to get access to the local resource (App_LocalResources) of an aspx page from within a user control located somewhere else? I have created a user control which I want to add to a...
2
by: erag | last post by:
Hi im newbie to java, and i want to set the language change according to main page..how to create it? here is my coding: main page: import org.eclipse.swt.SWT; import...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.