| Author: Curve Technologies 06 Sep 2008 | Member Level: Bronze Points : 1 |
Instead of writing this server side code we can have a asp:template field and add a hyperlink control with in it. Provide the required url to the url property of the control and the desired result is acquired. Thanks...
|
| Author: Ramesh 08 Sep 2008 | Member Level: Silver Points : 2 |
Providing a template control with a hyperlink control can be used when you know that there is only a url present in each row of the gridview. This code can be used in scenarios where the column needs to be a bound column and need to display some message and also the url in the same cell of the gridview. Also we may not know for sure that there will be url in the message. In those situations it becomes necessary to check for the existence of a url and provide the hyperlink for the same.
Thanks, Ramesh
|