Connecting Tech Pros Worldwide Forums | Help | Site Map

How to use Eval or Bind with 2 values

Donald Adams
Guest
 
Posts: n/a
#1: May 22 '06
How can I use Eval or Bind with 2 values? The following does not work:

<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl='Workitem.aspx?ID=<%# Eval("ID", "{0}") %>&WID=<%# Eval("PIID",
"{0}") %>' ImageUrl="~/Images/iSelect.gif"></asp:HyperLink>

Thanks in advance,
Donald


Ankit Aneja
Guest
 
Posts: n/a
#2: May 22 '06

re: How to use Eval or Bind with 2 values


<asp:HyperLink id="Hyperlink1" Runat="server"
NavigateUrl='<%#"/admin/managenews.aspx?action=2&id="+DataBinder.Eval(Cont ainer.DataItem,"NID")+"&cid="+DataBinder.Eval(Cont ainer.DataItem,"NID")
%>' ImageUrl="/images/right.png">
</asp:HyperLink>

this may help u
"Donald Adams" <BDA_2003@hotmail.com> wrote in message
news:9E927186-8FA2-42E8-93FC-5D824983F12B@microsoft.com...[color=blue]
> How can I use Eval or Bind with 2 values? The following does not work:
>
> <asp:HyperLink ID="HyperLink1" runat="server"
> NavigateUrl='Workitem.aspx?ID=<%# Eval("ID", "{0}") %>&WID=<%#
> Eval("PIID", "{0}") %>' ImageUrl="~/Images/iSelect.gif"></asp:HyperLink>
>
> Thanks in advance,
> Donald[/color]


Closed Thread