ASP.NET Binding integer to CheckBox's Checked field

前端 未结 6 1143
Happy的楠姐
Happy的楠姐 2021-01-12 13:11

I have a following ListView item template, in which I am trying to bind integer value to Checked property of CheckBox.

IsUploaded value con

6条回答
  •  耶瑟儿~
    2021-01-12 13:25

    Solution:

    Hi, I'm also using Ajax rating inside a GridView and I ran into this problem. After looking through several forums, I tried this and it worked for me. I hope it helps you:

    <%# Convert.ToInt32(Eval("EVALUATION")) %>
    

    returns an integer, since you're using Checked which is an integer.

提交回复
热议问题