Click here to Skip to main content
16,016,394 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I Have This Code To Create Hyperlink From One Col Of Grid View
C#
foreach (GridViewRow gr in GridViewTn.Rows)
{
    HyperLink hp = new HyperLink();
    hp.Text = gr.Cells[0].Text ;
    hp.NavigateUrl = "ViewFiles.aspx?name=" + hp.Text +"-"+ gr.Cells[1].Text;
    gr.Cells[0].Controls.Add(hp);
}

I Want In Page ViewFiles.aspx List All Files in Folder That Name is saved in hp.text
please help me
Posted
v3
Comments
See the HTML rendered on browser. Try to locate one Hyperlink in any row.
Check if the NavigateUrl is correct or not according to your logic.

1 solution

I think it's better to use Sessions concept.
 
Share this answer
 
Comments
How exactly? Please explain.

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