Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

repeater control help

Status
Not open for further replies.

zzzzzeke

Programmer
Mar 1, 2004
14
US
i need help using a repeater to basically simplify the following code:

Code:
            Case "district"
                distance = 5
                Dim schoolDistrict As WTL.NeighborhoodData.SchoolDistrict()
                schoolDistrict = _neighborhood.GetSchoolDistricts(distance)
                If schoolDistrict.Length = 0 Then
                    AddRow("There are no school districts within " & distance.ToString & " miles.")
                Else
                    ReDim s(2)
                    For i = 0 To schoolDistrict.Length - 1
                        link = "<a href=""SchoolDistrict.aspx?ID=" & schoolDistrict(i).LEAID & """>" & schoolDistrict(i).District & "</a>"
                        s(0) = schoolDistrict(i).City
                        s(1) = schoolDistrict(i).State
                        AddRow(link, s)
                    Next
                End If

i'm mainly having trouble setting the link up


Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top