Hello all,
I am a desktop programmer getting my feet wet on the web. I am trying to
build a .net website that will keep a set of local files synchronized with
a master set on the web.
Using a cookie I can keep track of when the user last synced and build a
file list in my asp.net code that displays which files need downloading.
Next I want to put a button on the page that will download all of the files
sequentially and put them in the appropriate local directories. I do NOT
want a save dialog opening for each file, as there may be dozens of files
at a time. The first time a user connects there could be 500 files!
Can this be done using javascript alone, or do I need to create some sort
of ActiveX object?
Thanks for any advice and direction...
Marc Pelletier 1 2007
Marc Pelletier wrote: Hello all,
I am a desktop programmer getting my feet wet on the web. I am trying to build a .net website that will keep a set of local files synchronized with a master set on the web.
Using a cookie I can keep track of when the user last synced and build a file list in my asp.net code that displays which files need downloading.
Yes, you can but it will be very unreliable. How do you deal with
situations where the user deletes their cookie file? How do you
guarantee that because the user 'synced' at a particular time that
they actually downloaded and installed the files, or that the files
are still on their system? Next I want to put a button on the page that will download all of the files sequentially and put them in the appropriate local directories. I do NOT want a save dialog opening for each file, as there may be dozens of files at a time. The first time a user connects there could be 500 files!
You have no control over where the user puts the files, or whether
the file 'Save As' dialogue appears. You could use a self-extracting
archive that knows where to put the files, but that would likely be
platform-specific and so may suit an intranet but certainly not a
publicly accessible web site.
Can this be done using javascript alone,
No.
or do I need to create some sort of ActiveX object?
You need something, it need not be ActiveX. This situation is
usually handled by the user downloading an installer that checks
their system, connects to the server and downloads what it thinks
are the required files, then puts them where they need to be.
There are ftp clients that do this sort of stuff, but the security
implications are horrendous. Thanks for any advice and direction...
Marc Pelletier
--
Rob This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dan roberts |
last post by:
Folks,
This is my first Python project so please bear with me. I need to
download data from Yahoo Finance in CSV format. The symbols are
provided in a text file, and the project details are included below.
Does anyone have some sample code that I could adapt?
Many thanks in advance,
dan
|
by: Sarah Akers |
last post by:
GgF
----gL5cJ72EqiGIQ0SK65Rz
Content-Type: text/html;
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<style type=3D"text/css">.eyebrow { FONT-WEIGHT: bold; FONT-SIZE: 10px; TE=
|
by: Anne Snow |
last post by:
7qs
----bSCMEc0pLIbJxmV9
Content-Type: text/html;
Content-Transfer-Encoding: quoted-printable
<html><head><style type=3Dtext/css>.eyebrow { FONT-WEIGHT: bold; FONT-SIZE=
: 10px; TEXT-TRANSFORM: uppercase; COLOR: #ffffff; FONT-FAMILY: verdana,ar=
ial,helvetica,sans-serif; TEXT-DECORATION: none } A.eyebrow:link { TEXT-DE=
CORATION: none }</style><title>6</title><meta http-equiv=3DContent-Type co=
|
by: Skwish |
last post by:
Hi,
I would like to download all the files from a folder (of various types i.e.
..txt, .dll, .dat, etc.). I tried
Dim MyDir As IO.Directory
Dim path As String = Me.MapPath(".") & "\Data"
Dim dirs As String() = IO.Directory.GetFiles(path)
Dim iLoop As Integer
Dim FileName As String
'Set the appropriate ContentType.
|
by: Ivo Tcholakov |
last post by:
Hello,
I created an application where the users need to download files. I have the
list of the files stored in a database and I present the list to download in
a Datagrid. Here comes my question.
How can I make it possible that the user selects multiple files and
downloads them at once instead of clicking on every file to download?
With the file input control you can choose only one file at a time to
upload.
Is there a way to do an...
| |
by: RJN |
last post by:
Hi
I need help in allowing the user to download multiple files at once.
User will be displayed a grid on the browser which will list the various
files available on the web server for download and a check box beside
each. User will select the files that are to be downloaded. On click of
start button, user should be prompted for the path where files have to
be saved and then all files have to downloaded and saved in that
directory. Can...
|
by: david |
last post by:
Given a path of directory, how to select and download a list of files in the
directory?
or simply download all files in the directory continuosly?
Thanks
David
|
by: rdemyan via AccessMonster.com |
last post by:
My App has 10 or so tables that we provide that contains proprietary data.
This data will need to be updated once or twice a year.
I would like some comments, suggestions on my proposed strategy for updating
these tables via an ftp site:
1) Post a .mdb file to our ftp web site that contains the updated tables. My
App code connects to the ftp site and gets the file name for any update files
on the site. I already have code to do this...
|
by: matt |
last post by:
I have used some free code for listing files for download, but I want to
send an email to the administrator when the file has been downloaded. I
have got some code in here that does it, but it will not print in the
username or email amddress of the person doing the download - which I am
collecting from a form on the previous page. I can get the name and
email address to print out normally, just not into the email sending
body. I have...
|
by: Juerg Beck |
last post by:
Hello all
I'm completely new to php but a complete newbie when it comes to unix.
So please don't laugh about my problem.
I have programmed a nice password check with php, javascript and a
database and it works. But as I have removed the access control with
..htaccess on the server I recognized that everybody can now directly
download all documents without a password, as long as they know the
filename and location.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |