Repeater DataNavigateURLFields

L

Luke Davis

I know what to do if I want to use HyperLinkField, but ItemTemplate in the
Repeater control only allows Hyperlink which does not contain a definition
for DataNavigateUrlFields. So how would I load a link to reflect multiple
parameters without using the DataNavigateUrlFields? I tried the
DataBinder.Container ordeal but that only allows one variable. Any help
out?

This is the wrong code I have, but this is at least what I am trying to do.



Thanks,

Luke



<asp:Repeater ID="rptTable" runat="server" DataSourceID="SqlDataSource1">

<HeaderTemplate>

<table>

States:

</HeaderTemplate>

<ItemTemplate>



<asp:HyperLinkField DataNavigateUrlFields="City,State,ZipCode,MedianSales"
DataNavigateUrlFormatString="template.aspx?city={0}&ampstate={1}&ampzipcode={2}&ampMedianSales={3}"
DataTextField="State" />



</ItemTemplate>

<FooterTemplate>

</table>

</FooterTemplate>


<SeparatorTemplate>

&nbsp;|

</SeparatorTemplate>

</asp:Repeater>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Problems with Repeater 2
repeater 0
GridView Question 0
Hiding a field in a repeater 14
repeater eval problem 2
Why image is not showing in repeater 1
Repeater Question 2
Nested Repeater within Grid 0

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top