Click here to Skip to main content
16,016,489 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi To All
I have This Code
C#
foreach (GridViewRow gr in GridViewTnf.Rows)
{
    HyperLink hp = new HyperLink();
    hp.Text = gr.Cells[1].Text;
    hp.NavigateUrl = "DownloadFile.aspx?Name="+hp.Text+".pdf";
    gr.Cells[1].Controls.Add(hp);
    Page.Controls.Add(new LiteralControl("<br/>"));
}


I Want when Click the file name Open File in DownloadFile.aspx page
plz help me
Posted
Updated 9-Mar-14 2:15am
v2
Comments
Kornfeld Eliyahu Peter 9-Mar-14 6:50am    
And? What is wrong?

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900