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

推荐订阅源

The GitHub Blog
The GitHub Blog
M
MIT News - Artificial intelligence
Engineering at Meta
Engineering at Meta
云风的 BLOG
云风的 BLOG
博客园 - 叶小钗
Jina AI
Jina AI
Last Week in AI
Last Week in AI
The Cloudflare Blog
博客园 - 【当耐特】
Stack Overflow Blog
Stack Overflow Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
博客园_首页
I
InfoQ
G
Google Developers Blog
Martin Fowler
Martin Fowler
Recent Announcements
Recent Announcements
H
Help Net Security
U
Unit 42
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog

博客园 - 华威

Action中的变量无需声明 ascx中javascript事件没有激活 "does not esixt in the current content" error Sql Server中Select @Value和Select Value的区别 Ajax中使用Get而出现的古怪现象 FireFox对代码的要求比IE要严 ASP.NET的TextBox控件宽度和Columns属性有关 从当前窗口返回原窗口打开新页面的JavaScript代码 C#中问号的作用 decimal在存储过程和C#中的应用 JavaScript函数的参数列表的长度不固定 SQL中char和varchar类型 HyperLink的UnLoad事件 改变了系统的地区设置,但是C#中的DateTime不是立刻生效的 在DataGrid里面取特殊字段值 事件两次激发? DataList里面的事件初始化 ajax 关于SqlDataReader.Read()方法
Page.Validate()方法
华威 · 2007-06-06 · via 博客园 - 华威

如果出现如下错误:
Page.IsValid cannot be called before validation has taken place. It should be queried in the event handler for a control with CausesValidation=True or after a call to Page.Validate.

在判断

Page.IsValid前,加上一句Page.Validate()即可