摘要: 在前台添加个CustomValidator 在后台代码中编写相应的事件 //验证注册用户名的有效性 private void ctv_uid_ServerValidate(object source, System.Web.UI.WebControls.ServerValidateEventArgs args) {//从文件Web.config中读取连接字符串 string strcon... 阅读全文