Can't find control within asp.net repeater?

前端 未结 5 1091
广开言路
广开言路 2020-12-08 20:19

I have the following repeater below and I am trying to find lblA in code behind and it fails. Below the markup are the attempts I have made:



        
5条回答
  •  失恋的感觉
    2020-12-08 20:57

    You should bind first.
    for example)

    rptDetails.DataSource = dataSet.Tables["Order"];
    
    rptDetails.DataBind();
    

提交回复
热议问题