D
David W
I would like to be able to evaluate an expression in the NavigateUrl
property of a HyperLink control. This is not a bound control. I know I can
do this easily in code-behind, but do not want to do it that way - I want to
be able to drop the link on any page.
<asp:HyperLink ID="hlHomePage" runat="server" NavigateUrl='<%#
Session("HomePath") & "home.aspx" %>' Text="Home"></asp:HyperLink>
The above does not evaluate and produces a link with no href, but doesn't
generate an error. Any suggestions other than doing it in code-behind?
Thanks,
Dave
property of a HyperLink control. This is not a bound control. I know I can
do this easily in code-behind, but do not want to do it that way - I want to
be able to drop the link on any page.
<asp:HyperLink ID="hlHomePage" runat="server" NavigateUrl='<%#
Session("HomePath") & "home.aspx" %>' Text="Home"></asp:HyperLink>
The above does not evaluate and produces a link with no href, but doesn't
generate an error. Any suggestions other than doing it in code-behind?
Thanks,
Dave