这样绑定为何不行呀???
->sql语句
string mysql="select a.pkid,a.clientname,a.contractprice,a.qiantime,a.producttype,b.payid,b.paydays,b.nextpaydays,datediff(dd,paydays,nextpaydays) as ee,datediff(dd,paydays,getdate()) as ff from client as a left join clientpay as b on a.pkid=b.clientid and (b.paytoflag=1) where a.producttype=1 ";
二>DataGrid
<asp:TemplateColumn HeaderText="当期付款">
<ItemTemplate>
<asp:Image ID="Image1" ImageUrl="gou.gif" Visible='<%#getDQvisible((DataBinder.Eval(Container.DataItem,"ee")),(DataBinder.Eval(Container.DataItem,"ff")))%>' runat=server/>
</ItemTemplate>
</asp:TemplateColumn>
三>后台方法
public bool getDQvisible(string day1,string day2)
{
if((Int32.Parse(day1))>(Int32.Parse(day2)))
{
return true;
}
else
return false;
}
四>错误提示
CS1502: 与“MWIT.Web.finance.khkuan.getDQvisible(string, string)”最匹配的重载方法具有一些无效参数