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

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The Cloudflare Blog
U
Unit 42
D
Docker
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
Recent Announcements
Recent Announcements
GbyAI
GbyAI
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
V
Visual Studio Blog
I
InfoQ
Google DeepMind News
Google DeepMind News
小众软件
小众软件
L
LangChain Blog
C
Check Point Blog
宝玉的分享
宝玉的分享
Martin Fowler
Martin Fowler
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
J
Java Code Geeks
罗磊的独立博客

博客园 - 华威

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()即可