惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 【当耐特】
Help Net Security
Help Net Security
P
Proofpoint News Feed
J
Java Code Geeks
爱范儿
爱范儿
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Full Disclosure
Google DeepMind News
Google DeepMind News
H
Help Net Security
G
Google Developers Blog
Jina AI
Jina AI
Vercel News
Vercel News
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
L
Lohrmann on Cybersecurity
S
Schneier on Security
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
Security Archives - TechRepublic
Security Archives - TechRepublic
阮一峰的网络日志
阮一峰的网络日志
N
News and Events Feed by Topic
GbyAI
GbyAI
B
Blog
O
OpenAI News
博客园_首页
Cisco Talos Blog
Cisco Talos Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Hacker News: Ask HN
Hacker News: Ask HN
TaoSecurity Blog
TaoSecurity Blog
腾讯CDC
MongoDB | Blog
MongoDB | Blog
M
MIT News - Artificial intelligence
C
Cybersecurity and Infrastructure Security Agency CISA
Cyberwarzone
Cyberwarzone
Webroot Blog
Webroot Blog
Simon Willison's Weblog
Simon Willison's Weblog
Y
Y Combinator Blog
C
Cisco Blogs
A
Arctic Wolf
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Exploit Database - CXSecurity.com
Security Latest
Security Latest
AI
AI
W
WeLiveSecurity
aimingoo的专栏
aimingoo的专栏
The Register - Security
The Register - Security
Project Zero
Project Zero
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale

博客园 - 在下刚哥

ABP配置时间格式 Java Instant\Date\LocalDateTime\Calendar\ZonedDateTime转化 - 在下刚哥 - 博客园 List与String、数组的相互转换 Json转换 黑龙江社保电话 List与String的相互转换(C#) ServiceStack.Redis的GetTypedClient C# 16进制转换10进制 揭秘人体24小时 四年一轮回 .cs编译DLL类库方法 类命名规范、数据库命名规范和页面文件命名规范 SHTML和HTML的区别 NavigateUrl属性绑定 - 在下刚哥 - 博客园 让IT工作者过劳的13个坏习惯 腾讯笔试题--国王招来100个囚犯(转) 很牛的求职经历(转) 中国各城市经纬度数据 Microsoft Visual Source Safe 2005 下载地址
Fckeditor在.net下用验证控件问题
在下刚哥 · 2007-10-03 · via 博客园 - 在下刚哥

用的RequiredFieldValidator来验证Fckeditor的内容是否为空,结果添加的时候发现第一次提交他会提示为空,要再点一次才能提交。

下面是解决方法:
<script language="javascript"  type="text/javascript">
var oEditer;
function CustomValidate(source, arguments)
{
    var value = oEditer.GetXHTML(true);
    if(value=="")
    {
       arguments.IsValid = false;
    }
   else
   { 
       arguments.IsValid = true; 
    }
}

function FCKeditor_OnComplete( editorInstance )

    oEditer = editorInstance;
}
</script>

把上面的脚本添加至页面内,然后选用CustomValidator验证控件,设置ClientValidationFunction="CustomValidate",并设置ValidateEmptyText属性为True,还有记得设置ControlToValidate啊。

还有:

http://www.cnblogs.com/jillzhang/archive/2006/09/30/518838.html