Article View: borland.public.csharpbuilder.language.csharp
Article #96Downloading file
From: M. Noroozi Eghbali
Date: Thu, 13 Apr 2006 15:05
Date: Thu, 13 Apr 2006 15:05
18 lines
1296 bytes
1296 bytes
Hi,
I need to download a file using OnClick event or Command of a ASP button. Is
there any possible code for this?
In ASPX file:
<ASP:Button id="button1" runat="server" text="Start Download"></ASP:Button>
In CS file:
private void button1_Click(object sender, System.EventArgs e)
{
//some actions before downloading
//download file
}
Thank you,
Mehrdad
Technical Details
Message-ID:
<443e76c3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!newsgate.newsserver.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,f82076c469db8a3a,start X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit From: "M. Noroozi Eghbali" <galaxy@irandoc.ac.ir> Newsgroups: borland.public.csharpbuilder.language.csharp Subject: Downloading file Date: Thu, 13 Apr 2006 19:35:20 +0430 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 NNTP-Posting-Host: 213.176.21.210 Message-ID: <443e76c3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1144944323 213.176.21.210 (13 Apr 2006 09:05:23 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!newsgate.newsserver.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail