i am using and hyperlink server control like this:
<asp:HyperLink NavigateUrl="~/Administracion/Usuarios/InformacionUsuario.aspx?user=<%# Eval("UserName") %>" runat="server">
<%# Eval("UserName") %>
</asp:HyperLink>
but i am having the following error:
Server Error in '/Gerisoft.Website' Application.
Parser Error
Description: An
error occurred during the parsing of a resource required to service
this request. Please review the following specific parse error details
and modify your source file appropriately.
Parser Error Message: The server tag is not well formed.
Source Error:
Line 51: Usuario</HeaderTemplate> Line 52: <ItemTemplate> Line 53: <asp:HyperLink NavigateUrl="~/Administracion/Usuarios/InformacionUsuario.aspx?user=<%# Eval("UserName") %>" runat="server"> Line 54: <%# Eval("UserName") %> Line 55: </asp:HyperLink>
|
and when i use and <a href> html control it works fine.
<a href="../Usuarios/InformacionUsuario.aspx?user=<%# Eval("UserName") %>">
<%# Eval("UserName") %>
</a>
any help?