csgashine

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

         Every control declaration must have a corresponding closing tag or the empty element /> syntax at the end of the opening tag. In orther words, Asp.net tags follow the same rules as tags in XHTML. 

        All Web controls must be declared within a server-side form tag(and there can be only one server-side form per page), even if they don't cause a postback. Otherwise, you'll get a runtime error. This rule is not necessary when working with HTML server controls, provided you don't need to handle postbacks.

posted on 2006-03-23 22:10  asp-shine  阅读(271)  评论(0编辑  收藏  举报