Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a client and a server script from one button(or link)!!!

Status
Not open for further replies.

sherlock1305

Programmer
Jul 10, 2001
21
0
0
CA
Hi,

I'm trying to make a link(or a button) that will start a download and that will permit me to write data to my database...

Someone knows how I can do it???

Thanks a lot,

Sherlock
 
Don't quite understand the difficulties there. Write a button that calls ..say PageA.asp.

in PageA.asp, generate a client-side code for window.open( <file you want to download>) and do whatever you need to update the database.

Effectively, the PageA.asp does 2 things, on the Server-side, it writes data to a database and generate a client-side script that downloads a file (in that order).

Hope this helps :) cheers.

regards,
- Joseph
============ ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Visit --> for (Replica) Watches, Pen, Handbags, Hats, Jerseys and more ... at prices that makes your code spin ...
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
 
Sorry but I'm new with this kind of work!
Thanks a lot!

Sherlock
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top