Gridview问题传递多个Eval [英] Gridview problem to passing multiple Eval
本文介绍了Gridview问题传递多个Eval的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在这里传递两个eval bt是问题
i want to pass two eval bt here is problem
<ItemTemplate>
<asp:Label ID="lbstatus" Text='<%#checkstatus(Convert.ToInt32(Eval("IsCompanyAdmin"),Convert.ToInt32(Eval("IsDeleted")))) %>' runat="server" />
</ItemTemplate>
Compiler Error Message: CS1502: The best overloaded method match for 'System.Convert.ToInt32(object, System.IFormatProvider)' has some invalid arguments
谢谢
Thanks
推荐答案
在
后加上右括号
put closing parenthesis after
#checkstatus(Convert.ToInt32(Eval("IsCompanyAdmin")
这篇关于Gridview问题传递多个Eval的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文