<%# IIf(yhinlog.RecordCount>0,FALSE,TRUE) %> 我在asp.net的验证控件中用这个代码进行用户名是否重复的验证,为什么不管输什么用户名总是说用户名已经存在,根本没有起到验证的作用呢?<asp:CustomValidator ClientValidationFunction="<%# IIf(yhinlog.RecordCount>0,FALSE,TRUE) %>" ControlToValidate="usename" Display="Static" ErrorMessage="用户名已经存在" runat="server"></asp:CustomValidator> 请各位大虾帮忙看一下!!
随便乱粘贴的 不懂的 不要来!