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

推荐订阅源

Y
Y Combinator Blog
S
SegmentFault 最新的问题
Engineering at Meta
Engineering at Meta
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Google DeepMind News
Google DeepMind News
博客园_首页
云风的 BLOG
云风的 BLOG
月光博客
月光博客
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Vercel News
Vercel News
美团技术团队
Microsoft Security Blog
Microsoft Security Blog
P
Proofpoint News Feed
D
Docker
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
博客园 - 叶小钗
Martin Fowler
Martin Fowler
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog

博客园 - 1werwerfer

使用ASP.NET 2.0新增加的SetFocus和MaintainScrollPositionOnPostback增强用户体验 - 1werwerfer - 博客园 ADO.NET中的Transaction SQL Server 索引结构及其使用(四) SQL Server 索引结构及其使用(三) SQL Server 索引结构及其使用(二) SQL Server 索引结构及其使用(一) 如何作正确的询价--不可忽视的国际贸易中的"贸易条件" - 1werwerfer - 博客园 智猪博弈与企业技术创新决策 为 IIS 创建证书需要安装证书服务吗? MSI文件制作全过程 如何将Windows Server 2003映像安装到Windows Server 2003 RIS服务器 Asp.Net中使用水晶报表 经典正则表达式 使用System.DirectoryServices.Protocols实现对AD的简单操作 备份Exchange server存储组有效减少LOG文件 如何将SQL Server表驻留内存和检测 A Simple Tip on SQL Server Stored Procedure 无盘网络技术详解 如何面对呼叫中心的风险?
asp.net 2.0在使用了mater page的情况下Form defaultbutton无...
1werwerfer · 2006-02-16 · via 博客园 - 1werwerfer

1    protected override void OnInit(EventArgs e)
2    {
3        base.OnInit(e);
4        Page.Form.DefaultButton = "btnSearch";
5    }

但是页面提示错误,宣告失败
 

The DefaultButton of 'form1' must be the ID of a control of type IButtonControl.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The DefaultButton of 'form1' must be the ID of a control of type IButtonControl.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

不知道有没有哪位高人有好的解决方案?