Bound NavigateUrl issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • VB Programmer

    Bound NavigateUrl issue

    ASP.NET 2.0.....

    In my DataList I have a hyperlink like this...

    NavigateUrl='Sh op.aspx?Categor yId=<%# Bind("CategoryI d")%>'

    This navigates incorrectly to here:

    Shop.aspx?Categ oryId=<%# Bind("CategoryI d")%>

    Any ideas how I can fix this?

    Thanks!


  • VB Programmer

    #2
    Re: Bound NavigateUrl issue

    Anyone? Seems like a common issue...

    "VB Programmer" <dont@emailme.c om> wrote in message
    news:uhYBoJ6KGH A.1312@TK2MSFTN GP09.phx.gbl...[color=blue]
    > ASP.NET 2.0.....
    >
    > In my DataList I have a hyperlink like this...
    >
    > NavigateUrl='Sh op.aspx?Categor yId=<%# Bind("CategoryI d")%>'
    >
    > This navigates incorrectly to here:
    >
    > Shop.aspx?Categ oryId=<%# Bind("CategoryI d")%>
    >
    > Any ideas how I can fix this?
    >
    > Thanks!
    >[/color]


    Comment

    • Patrick.O.Ige

      #3
      Re: Bound NavigateUrl issue

      Where are you doing this in the code behind or ASPX page?
      Patrick

      "VB Programmer" <dont@emailme.c om> wrote in message
      news:u4Or%23UDL GHA.2392@TK2MSF TNGP09.phx.gbl. ..[color=blue]
      > Anyone? Seems like a common issue...
      >
      > "VB Programmer" <dont@emailme.c om> wrote in message
      > news:uhYBoJ6KGH A.1312@TK2MSFTN GP09.phx.gbl...[color=green]
      > > ASP.NET 2.0.....
      > >
      > > In my DataList I have a hyperlink like this...
      > >
      > > NavigateUrl='Sh op.aspx?Categor yId=<%# Bind("CategoryI d")%>'
      > >
      > > This navigates incorrectly to here:
      > >
      > > Shop.aspx?Categ oryId=<%# Bind("CategoryI d")%>
      > >
      > > Any ideas how I can fix this?
      > >
      > > Thanks!
      > >[/color]
      >
      >[/color]


      Comment

      • VB Programmer

        #4
        Re: Bound NavigateUrl issue

        I figured it out...

        <ItemTemplate >
        <asp:HyperLin k id=hlLink runat="server" NavigateUrl='<% #
        "Shop.aspx?Cate goryId=" & Eval("CategoryI d").ToString %>'
        Font-Size="XX-Small" Font-Bold="True" ForeColor="Roya lBlue" Text='<%#
        Eval("CategoryN ame", "{0}") %>'></asp:HyperLink>
        </ItemTemplate>

        Hope this is helpful to someone....

        Thanks!

        "Patrick.O. Ige" <naijacoder@hot mail.com> wrote in message
        news:uKVauQFLGH A.668@TK2MSFTNG P11.phx.gbl...[color=blue]
        > Where are you doing this in the code behind or ASPX page?
        > Patrick
        >
        > "VB Programmer" <dont@emailme.c om> wrote in message
        > news:u4Or%23UDL GHA.2392@TK2MSF TNGP09.phx.gbl. ..[color=green]
        >> Anyone? Seems like a common issue...
        >>
        >> "VB Programmer" <dont@emailme.c om> wrote in message
        >> news:uhYBoJ6KGH A.1312@TK2MSFTN GP09.phx.gbl...[color=darkred]
        >> > ASP.NET 2.0.....
        >> >
        >> > In my DataList I have a hyperlink like this...
        >> >
        >> > NavigateUrl='Sh op.aspx?Categor yId=<%# Bind("CategoryI d")%>'
        >> >
        >> > This navigates incorrectly to here:
        >> >
        >> > Shop.aspx?Categ oryId=<%# Bind("CategoryI d")%>
        >> >
        >> > Any ideas how I can fix this?
        >> >
        >> > Thanks!
        >> >[/color]
        >>
        >>[/color]
        >
        >[/color]


        Comment

        Working...