Question : Repeater: Defining a property of a control within a Repeater

I have a repeater. In the repeater is a control that also contains a repeater. I need to pass in a property to the control so that it can load the correct data for its repeater. How do I do that?

I have this:


How do I define the value in my codebehind so it knows the ReviewID? Attached is my code....

Thanks!
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:

        
            
                    snipped....
                

Answer : Repeater: Defining a property of a control within a Repeater

one more fix ;)
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
Protected Sub repReport_ItemDataBound(ByVal sender As Object, ByVal e As RepeaterItemEventArgs) Handles repReport.ItemDataBound  
  try  
    Dim di As DataRowView = e.Item.DataItem  
    Dim rp As Repeater = e.Item.FindControl("repReviewers") 
    rp.DataSource = GetReviewers(di("ReportID") 
    rp.DataBind() 
    ...  
  Catch ex As Exception  
    ' oops???  
  End Try  
End Sub
Random Solutions  
 
programming4us programming4us