M
M. Noroozi Eghbali
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
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