Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试创建一个自定义验证器来检查名称是否唯一。似乎不会执行服务器端验证。我怎样才能解决这个问题 ?
你可以在这里找到ASP代码和后面的代码:http: //pastebin.com/biYqMT23
你可以试试我修改你的按钮:
<asp:Button ID="ButtonAddCategory" runat="server" Text="Add" ValidationGroup="GroupAddCategory" CausesValidation="true" OnClick="ButtonAddCategory_Click" OnClientClick="return Page_ClientValidate('GroupAddCategory');" />