C# Change dynamically NavigateUrl HyperLinkField
Posted
by Martijn
on Stack Overflow
See other posts from Stack Overflow
or by Martijn
Published on 2008-12-01T11:02:34Z
Indexed on
2010/03/23
8:03 UTC
Read the original article
Hit count: 469
Hi,
In my code i create a HyperLinkField object. Depending on a database field value, i want to set the NavigateUrl property. This is my problem, i don't know how.
With:
objHF.DataNavigateUrlFields = new[] { "id", "Stype" };
i get my database field. Now i want to check the Stype value. Depeding on this value i want to set the page where to navigate to. How can i do this??
At the end i set my datasource to the gridview and after that i call the bind() method.
I hope someone can help me out
© Stack Overflow or respective owner