Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 7th, 2005, 03:57 AM
Registered User
 
Join Date: Feb 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to raysot
Default Download a file from a datagrid Column

Here's the scenario:

I have a datagrid with the following columns:

CustID, OrderID, ProductID, FileName

The FileName column is a Hyperlink Column

The "File" is stored as a BLOB in SQL Server

Preferred solution:
Clicking on a Filename in the datagrid fires a stored procedure that is then sent all the ID column values, which looks up the BLOB to download.

...this opens a "Would you like to Download?" (Or something) messagebox on the client's browser.

What I don't know:
1. How to send values CustID, OrderID, ProductID to the stored procedure after click event

2. How to start a download on the client's browser.

This is the final step in my project and I am totally stuck. Help me! ;)

Best Regards,

Ray Sotkiewicz
 
Old February 9th, 2005, 01:02 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

To Download The File
save the file from db to server (Blob modules are in msdn help) as file and get the server path and add it to the link "FileName"

Ahmed Ali
Software Developer





Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting column name/header of a datagrid elygp ASP.NET 1.0 and 1.1 Professional 2 June 6th, 2007 01:07 PM
Datagrid column values krishnasamaga C# 2005 1 August 8th, 2006 06:54 AM
Smaller download/single download file available jminatel BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 November 21st, 2005 11:10 AM
Select a Column of DataGrid thomaz C# 0 June 29th, 2005 01:59 PM
Datagrid column values pankaj_daga ASP.NET 1.0 and 1.1 Basics 4 November 17th, 2003 05:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.