N
Nick
Hi,
I have a Repeater control and want to bind a hyperlink to each repeated
row. For this I can use the following syntax (excuse any incorrect
naming but I don't have any code to hand):
<asp:Hyperlink id="x" NavigateToUrl='<%# Bind("id", "Page.aspc?id={0}")
%> Text="Text"></asp:Hyperlink>
This all works find but I'd like to be able to bind 2 data items such
as this:
<asp:Hyperlink id="x" NavigateToUrl='<%# Bind("id, name",
"Page.aspc?id={0}&name={1}") %> Text="Text"></asp:Hyperlink>
Obviously this doesn't work, but is there another way to do this?
Thanks
Nick
I have a Repeater control and want to bind a hyperlink to each repeated
row. For this I can use the following syntax (excuse any incorrect
naming but I don't have any code to hand):
<asp:Hyperlink id="x" NavigateToUrl='<%# Bind("id", "Page.aspc?id={0}")
%> Text="Text"></asp:Hyperlink>
This all works find but I'd like to be able to bind 2 data items such
as this:
<asp:Hyperlink id="x" NavigateToUrl='<%# Bind("id, name",
"Page.aspc?id={0}&name={1}") %> Text="Text"></asp:Hyperlink>
Obviously this doesn't work, but is there another way to do this?
Thanks
Nick