N
Neil
Hi,
I have a datalist of links.
I want the selected link to be a different style / class and prefereably not
a link.
I have created the following code which failed because of the test in line
2 - can anyone advise how I could do this?
Many thanks,
NEIL
<ItemTemplate>
<% If Request.QueryString("CID") <> Eval("ID") Then%>
<asp:HyperLink id="HyperLink1" runat="server" Text='<%# Eval("sName") %>'
NavigateUrl='<%# "default.aspx?CID=" & Eval("ID") %>'
__designer:wfdid="w11"></asp:HyperLink>
<% Else%>
<asp:Label id="Label1" runat="server" Text='<%# "<div class=""black"">" &
Eval("sName") & "</div>" %>' __designer:wfdid="w12"></asp:Label>
<% end if %>
</ItemTemplate>
I have a datalist of links.
I want the selected link to be a different style / class and prefereably not
a link.
I have created the following code which failed because of the test in line
2 - can anyone advise how I could do this?
Many thanks,
NEIL
<ItemTemplate>
<% If Request.QueryString("CID") <> Eval("ID") Then%>
<asp:HyperLink id="HyperLink1" runat="server" Text='<%# Eval("sName") %>'
NavigateUrl='<%# "default.aspx?CID=" & Eval("ID") %>'
__designer:wfdid="w11"></asp:HyperLink>
<% Else%>
<asp:Label id="Label1" runat="server" Text='<%# "<div class=""black"">" &
Eval("sName") & "</div>" %>' __designer:wfdid="w12"></asp:Label>
<% end if %>
</ItemTemplate>