We have a ASP.Net/SQL Server application that is used as a document
management system. The documents are stored per project. The files are
stored on a file server but we store the file name in the database and when
displaying the files build a grid at run time to allow users to view the
files like http://servername/files/filename.doc
The problem we have currently is users have to use the web form to upload
the files to database. Most users will work in thier local pc and when done
will use the form to upload the file.
What we want them to be able to do is to Right Click on any document/file
and select "Save to Doc Manager" function. They enter the project id and the
file is then saved automatically using the same method that is used on the
web. i.e. copy the file to a specific location and add an entry to the sql
server table.
Does anyone know how this can be achieved?
Thanks
Jas 2 1652
JPS,
I have never don this, but it should in my idea be possible.
Add a context menu to your standard windows menu and use that to start a
program using application start. http://msdn.microsoft.com/en-us/library/aa753589.aspx
The program (a console application) does nothing more then to show a
FileOpenDialog and add the choosen file to the SQL server.
(It is in my idea not simple not possible to find the file in the running
program as that can have more than one file).
Probably you need to use SQL Server authithencation as you want to make your
live simple.
However not a job for a simple sample here.
Cor
"JPS" <ao**@hotmail.c omschreef in bericht
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
We have a ASP.Net/SQL Server application that is used as a document
management system. The documents are stored per project. The files are
stored on a file server but we store the file name in the database and
when displaying the files build a grid at run time to allow users to view
the files like http://servername/files/filename.doc
The problem we have currently is users have to use the web form to upload
the files to database. Most users will work in thier local pc and when
done will use the form to upload the file.
What we want them to be able to do is to Right Click on any document/file
and select "Save to Doc Manager" function. They enter the project id and
the file is then saved automatically using the same method that is used on
the web. i.e. copy the file to a specific location and add an entry to the
sql server table.
Does anyone know how this can be achieved?
Thanks
Jas
(I'm making this suggestion because I hate windows shell extensions :-)
Have you considered a little windows forms application that allows the user
to drag files onto it? It could be a ClickOnce project, if you want it to be
distributed via a webpage. Some CD/DVD burning apps use this type of UI.
For usability, you might need to set the .TopMost property to TRUE, or you
could make it a systray app.
--
David Streeter
Synchrotech Software
Sydney Australia
"Cor Ligthert[MVP]" wrote:
JPS,
I have never don this, but it should in my idea be possible.
Add a context menu to your standard windows menu and use that to start a
program using application start.
http://msdn.microsoft.com/en-us/library/aa753589.aspx
The program (a console application) does nothing more then to show a
FileOpenDialog and add the choosen file to the SQL server.
(It is in my idea not simple not possible to find the file in the running
program as that can have more than one file).
Probably you need to use SQL Server authithencation as you want to make your
live simple.
However not a job for a simple sample here.
Cor
"JPS" <ao**@hotmail.c omschreef in bericht
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
We have a ASP.Net/SQL Server application that is used as a document
management system. The documents are stored per project. The files are
stored on a file server but we store the file name in the database and
when displaying the files build a grid at run time to allow users to view
the files like http://servername/files/filename.doc
The problem we have currently is users have to use the web form to upload
the files to database. Most users will work in thier local pc and when
done will use the form to upload the file.
What we want them to be able to do is to Right Click on any document/file
and select "Save to Doc Manager" function. They enter the project id and
the file is then saved automatically using the same method that is used on
the web. i.e. copy the file to a specific location and add an entry to the
sql server table.
Does anyone know how this can be achieved?
Thanks
Jas This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: EC |
last post by:
I am trying to save a file to an end users desktop from the Server on the
click of a button. This works when run the application on my local but does
not work when the application is running on the web server because Dim
copyfiletodesktop As String = "C:\temp\" points to the Web server’s C drive
and not the end users C while when I run the application on my desktop, C
points to my C Drive and that is why it works.
Does anyone know how...
|
by: kieran |
last post by:
Hi,
I want to download an image from the web and save it locally. I have
spent all day messing about with this and am still no where. We have
a firewall so i use the below code. I know it works down to the line
as i also use this code to download an xml file from the net. I have
been messing around with all sorts of ways to stream the image into a
local file and save it. but no luck.
Am i totally off key here, can anyone point me...
|
by: sunilj20 |
last post by:
Hello,
I have a requirement wherein, a user clicks on a file name in an
ASP.NET web application, and the file should automatically be
downloaded (Without showing the "Open", "Save As") in the local machine
at a pre defined path (path defined in the registry), and launch the
file in its associated application.
I think this can be done through ActiveX Controls, but i dont know how
to create ActiveX controls in .NET??
|
by: Scott M. Lyon |
last post by:
I'm working on a WinForm application, and recently was informed that I need
to create an "Export" function for the data (stored in SQL Server), in a
specific (TXT, tab delimited) format.
I'd like to figure out a way to bring up the "Open or Save" dialog similar
to what we see on Web Pages, but with a minimal amount of coding (especially
considering this isn't a Web application), but would then allow me to create
a TXT file and either...
|
by: **Developer** |
last post by:
I have a folder on my Desktop that has the following properties:
Type: Folder
Target: \\MM\backup
Comment: \\MM\\Backup
When I execute:
Directory.GetFiles(NewDirectory & "\")
| |
by: jason |
last post by:
I've been playing around with new (for 2.0) membershp functionality.
I was able to build a simple login form that secures a directory on a
project I built locally on my development desktop.
However, when I attempt to follow the same steps on the remote test
server (a website I access via filesystem security accross my lan ).. I
get the following when I attempt to select the security tab from the
administer selection of the login...
|
by: elgiei |
last post by:
Good morning at all,
i have to implement a server,that every n-seconds (eg. 10sec) sends to
other clients,which files and directory has been deleted or modified.
i build a n-tree, for each files on harddisk there's a node into n-
tree,
this solution is not good for large hard disk..
and i can't use inotify (it's forbidden),
and only c solutions are accepted
without third party software or external calls.
|
by: =?Utf-8?B?YzY3NjIyOA==?= |
last post by:
Hi all,
I have a question for you.
I have a .csv file which has many lines of data.
Each line has many data fields which are delimited by ",".
Now I need to extract part of data from this file but save it as an excel
file.
The data in this excel file will be imported into an Access database. The
|
by: evenlater |
last post by:
I have an Access application on a terminal server. Sometimes my users
need to export reports to pdf, rtf or xls files and save them to their
own client device hard drives.
They can do that right now the way I have this set up, but it's
confusing and slow. When they browse for a place to save the reports,
they see all of the drives on the terminal server as well as their own
client drives. So they're likely to want to choose "My...
|
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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |