现在的位置: 首页 > 综合 > 正文

Page.Validate()方法

2012年10月30日 ⁄ 综合 ⁄ 共 201字 ⁄ 字号 评论关闭
如果出现如下错误:
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()即可

抱歉!评论已关闭.