473,396 Members | 1,805 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,396 software developers and data experts.

Save Files from my desktop to SQL Server

JPS
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
Jul 19 '08 #1
2 1633
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.comschreef in bericht
news:%2****************@TK2MSFTNGP05.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

Jul 20 '08 #2
(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.comschreef in bericht
news:%2****************@TK2MSFTNGP05.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
Jul 22 '08 #3

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

Similar topics

3
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...
8
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...
4
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...
2
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...
2
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 & "\")
3
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. ...
7
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...
3
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
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,...
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...

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.