Hi all. I can't find a solution for my problem, and it's simple. I have a datalist with an hyperlink inside and its navigateurl value is databound. How can I validate the value I get from the database to enable or disable the hyperlink? What handlers should I use?
Need help.
Thanks.
Hi,yllusion:
You can do that in the Itembound event:
if e.Item.ItemType = ListItemType.Item{
HyperLink HP=(HyperLink)e.Item.Controls.FindControl(LinkID);
if(yourLogic)
{HP.visible=false;}
}
Thank you, but I've implemented a different solution.
No comments:
Post a Comment