L
Lan H. Nguyen
I have this line of code in my .aspx page
<asp:HyperLink ID="hrefView" CssClass="main" ForeColor="blue" Runat="server"
NavigateUrl='<%# "View.aspx?id=" + ID.ToString()%>'>View
Customer</asp:HyperLink>
But when the page runs it shows text only "View Customer" without hyperlink.
This is what it was rendered in the page source <a id="hrefView"
class="main" style="color:Blue;">View Customer</a>
Not working either when removed the ID
<asp:HyperLink ID="hrefView" CssClass="main" ForeColor="blue" Runat="server"
NavigateUrl='<%# "View.aspx?id=100"%>'>View Customer</asp:HyperLink>
Don't pass parameters to the control, then it renders correctly
<asp:HyperLink ID="hrefView" CssClass="main" ForeColor="blue" Runat="server"
NavigateUrl='View.aspx'>View Customer</asp:HyperLink>
Does anybody have any ideas what I'm doing wrong here. Any help is
appreciated.
Lan
<asp:HyperLink ID="hrefView" CssClass="main" ForeColor="blue" Runat="server"
NavigateUrl='<%# "View.aspx?id=" + ID.ToString()%>'>View
Customer</asp:HyperLink>
But when the page runs it shows text only "View Customer" without hyperlink.
This is what it was rendered in the page source <a id="hrefView"
class="main" style="color:Blue;">View Customer</a>
Not working either when removed the ID
<asp:HyperLink ID="hrefView" CssClass="main" ForeColor="blue" Runat="server"
NavigateUrl='<%# "View.aspx?id=100"%>'>View Customer</asp:HyperLink>
Don't pass parameters to the control, then it renders correctly
<asp:HyperLink ID="hrefView" CssClass="main" ForeColor="blue" Runat="server"
NavigateUrl='View.aspx'>View Customer</asp:HyperLink>
Does anybody have any ideas what I'm doing wrong here. Any help is
appreciated.
Lan