Figure 2 lists some of the methods available on the HtmlForm class that you'll be using most often.
图2列出了HtmlFor m类中最常用的到一些方法。
AS you can see, the interface changes in HtmlForm between ASP.NET 1.x and ASP.NET 2.0 are limited to a few properties.
从表中可以看到ASP.NET 1. x和asp.net 2.0的变化主要限于几个properties。
HtmlForm provides programmatic access to the HTML element on the server through the set of properties listed in Figure 1.
HtmlForm提供了对HTML元素在服务器端的编程访问能力,其properties列表见图1。
ASP.NET 2.0 adds a few new properties to the HtmlForm class, but doesn't change its core behavior, so self-posting pages are still the primary method of writing pages in ASP.NET.
NET 2.0为HtmlForm类增加了一些新的特性,然而核心行为并未改变,因此提交自身仍是ASP.NET编程的主要方法。
The flag thus indicates whether any other HtmlForm control has been rendered. When another HtmlForm attempts to render, the flag will already be true causing an exception to be thrown.
页面中的第一个HtmlForm控件被呈现后,会有一个布尔标记被设为true,此标记指示了是否有HtmlForm已被呈现,当另一个HtmlForm试图呈现时,由于此标记已经被设置为true因而引发一个异常。
The flag thus indicates whether any other HtmlForm control has been rendered. When another HtmlForm attempts to render, the flag will already be true causing an exception to be thrown.
页面中的第一个HtmlForm控件被呈现后,会有一个布尔标记被设为true,此标记指示了是否有HtmlForm已被呈现,当另一个HtmlForm试图呈现时,由于此标记已经被设置为true因而引发一个异常。
应用推荐