I figured it out...
<ItemTemplate>
<asp:HyperLink id=hlLink runat="server" NavigateUrl='<%#
"Shop.aspx?CategoryId=" & Eval("CategoryId").ToString %>'
Font-Size="XX-Small" Font-Bold="True" ForeColor="RoyalBlue" Text='<%#
Eval("CategoryName", "{0}") %>'></asp:HyperLink>
</ItemTemplate>
Hope this is helpful to someone....
Thanks!
"Patrick.O.Ige" <na********@hotmail.com> wrote in message
news:uK*************@TK2MSFTNGP11.phx.gbl...
Where are you doing this in the code behind or ASPX page?
Patrick
"VB Programmer" <do**@emailme.com> wrote in message
news:u4****************@TK2MSFTNGP09.phx.gbl... Anyone? Seems like a common issue...
"VB Programmer" <do**@emailme.com> wrote in message
news:uh**************@TK2MSFTNGP09.phx.gbl... > ASP.NET 2.0.....
>
> In my DataList I have a hyperlink like this...
>
> NavigateUrl='Shop.aspx?CategoryId=<%# Bind("CategoryId")%>'
>
> This navigates incorrectly to here:
>
> Shop.aspx?CategoryId=<%# Bind("CategoryId")%>
>
> Any ideas how I can fix this?
>
> Thanks!
>