MichaelChang
Programmer
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
--------------------------------
From: Michael Chang
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
--------------------------------
From: Michael Chang