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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nested Repeaters

Status
Not open for further replies.

dhmfh

Programmer
Nov 28, 2005
69
GB
Hi Guys

I have the following code which works how I want it to except that I am unable to hide / display information based on the results from the nested repeater.

'The Following Code Will Nest 2 Repeater Tags To Diplay The Area And The Properties Within Them
Dim DBConnection As SqlConnection = New SqlConnection(GlobalParameters.DBConnection())
Dim DataAdapter As SqlDataAdapter = New SqlDataAdapter("EXEC DSP_WListApartments", DBConnection)
Dim DataSet As DataSet = New DataSet()
DataAdapter.Fill(DataSet, "ListApartments")

Dim DataAdapter2 As SqlDataAdapter = New SqlDataAdapter("EXEC DSP_WListApartmentPropertyByArea", DBConnection)
DataAdapter2.Fill(DataSet, "ApartmentByArea")
DataSet.Relations.Add("ApartmentByAreaRelationship", DataSet.Tables("ListApartments").Columns("Area_Id"), DataSet.Tables("ApartmentByArea").Columns("Property_Area_Id"))
ListApartments.DataSource = DataSet.Tables("ListApartments")

Page.DataBind()
DBConnection.Close()

Any ideas?

Kind regards
 
If you want to "toggle" whether information shown/hidden on the client, you can use javascript to swap the CSS "display" style between "none" and "block".


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top