ASP.NET Repeater Error: No default member found for type xx

后端 未结 1 559
粉色の甜心
粉色の甜心 2021-01-26 18:35

This is my repeater control in my .aspx page:

    
        
            
<
相关标签:
1条回答
  • 2021-01-26 19:03

    Try with below Modified code

    Dim c As HyperLink = DirectCast(e.Row.FindControl("hypItem"), HyperLink)
    

    It should be like this DirectCast(e.Item.DataItem, YourClass).YourProperty

    0 讨论(0)
提交回复
热议问题