P
Paul D. Fox
How do I create a Hyperlink column in a Datagrid which launches a pop-up window, and have the text in the hyperlink change based on a condition? I'm trying to do something like the following:
<asp:TemplateColumn HeaderText="Status">
<ItemTemplate>
<a href="Javascript://" onClick="_openApproval(<%# DataBinder.Eval(Container, "DataItem.Training_Schedule_ID") %>);" >
<asp:HyperLink ID="lnkApproval"></asp:HyperLink>
</a>
</ItemTemplate>
</asp:TemplateColumn>
And I suppose I code something in the ItemDataBound to change the Hyperlink's Text? But How?
Paul
<asp:TemplateColumn HeaderText="Status">
<ItemTemplate>
<a href="Javascript://" onClick="_openApproval(<%# DataBinder.Eval(Container, "DataItem.Training_Schedule_ID") %>);" >
<asp:HyperLink ID="lnkApproval"></asp:HyperLink>
</a>
</ItemTemplate>
</asp:TemplateColumn>
And I suppose I code something in the ItemDataBound to change the Hyperlink's Text? But How?
Paul