Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 4th, 2005, 03:22 PM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I display a download link in my (C#) ASP.N

How can I display a download link in my (C#) ASP.NET web form to download a file stored in my sql db?

Hi everyone,
  I'm new to Visual Studio .NET and I've created a form that displays a record from a SQL database on the web. I can get everything to load fine except for a file stored in an "image" (datatype) field.
   What I want is the page to display either a picture or a link that the user can click to download the file.

My first question is: What object from the Toolbar should I place onto my form in order to display a link or image to the downloadable file?

Then: What do I need to put in my "Page_Load" event that will assign the contents of the "image" (datatype) field to the Toolbar control previously inserted?

Any help is greatly appreciated,

tks/mc

 
Old February 10th, 2005, 06:00 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Check out the below article to retrieve images from DB & display
http://www.dotnetjunkies.com/Article...44EE55CF9.dcik
Hope this will help you...






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to provide download link for images snowbydave1 Beginning PHP 4 March 24th, 2007 04:38 AM
How to provide download link for images snowbydave1 Pro PHP 0 March 19th, 2007 02:06 AM
How to provide download link for images snowbydave1 PHP FAQs 0 March 19th, 2007 02:03 AM
link to download a file kalyansarkar108 Javascript How-To 1 November 28th, 2005 09:21 AM
Professional ASP XML code download link Banana Classic ASP XML 0 April 1st, 2005 05:14 AM





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