Author: jpeetsma | Posted on: 4/30/2010 5:05:04 PM | Views : 592

I am unable to get the "ForeColor" to set correctly. All the other inline work correctly
Has anybody done this before?
I am attempting to set the Hyperlink  color based on the "EventType"
 
<asp:HyperLink ID="HyperLink1" runat="server"
Text='<%#Eval("EventName") %>'
NavigateUrl='<%# "Default.aspx?Eventid=" + Convert.ToString(Eval("Guid"))%>'
ToolTip='<%# Convert.ToString(Eval("EventLocation")) %>'
ForeColor= '<% if (Eval("EventType" = "GME")){"LimeGreen"} %>' />
...

Go to the complete details ...