英语翻译
HTML Server Controls
HTMLserver controls are simple HTML tags with a runat="server"attribute,which enables developers to access them programmatically and work with them in a similar way to Web controls.So,why include these types of controls when we have Web controls?Well,HTMLserver controls do havesome advantages over Web controls,including:
1.Web developers coming from an ASP3 or similar background may prefer to work with the HTML-style of control that they're used to
2.Developers can convert existing HTMLtags to HTMLserver controls fairly easily,thus gaining some server-side programmatic access to the control When a runat="server" attribute is added to an HTMLtag,the tag becomes a control.Each of these controls derives its functionality from the System.Web.UI.HtmlControls.HtmlControl base class.
Like Web controls,HTMLserver controls offer a variety of features that include:
1.Programmatic object model:
HTMLserver controls can be accessed programmatically on theserver.Each HTMLserver control is an object and you can access its various properties and get(and /set) them in your method or event-handler code.
2.Event processing:
HTMLserver controls provide a mechanism to write event handlers in muchthe same way as you would for a client-based form.The only difference is that the event is handled in the server code.
3.Automatic value caching:
When form data is posted to the server,the values that the user entersinto the HTMLserver controls are automatically maintained when the page is sent back to the browser.The magic behind this functionality is the result of a property called ViewState that all ASP.NET Web controls inherit.
人气:469 ℃ 时间:2020-03-29 14:08:58
解答
忙考试啊.可以考试过后吗
很愿意帮你 但是...
推荐
- 帮忙翻译下ASP.NET语句
- X-Powered-By:ASP.
- sessionstate怎么翻译,ASP.NET的内容.翻译成汉语
- 2√2是无理数吗?
- 请问下米与公斤怎么换算
- 甲乙丙三人乘火车,每人行李都超过了免费的重量,需另加行李费,甲支付了3元,已支付了5元,并支付了7元.三人行李共重90千克,如这些行李一人携带,需支付35永远,丙带的行李重多少千克
- 某种商品的进价为800元,出售时标价为1200元,后来由于该商品积压,商店准备打折销售,但要保证利润率不低于5%,则至多可打( ) A.6折 B.7折 C.8折 D.9折
- James has just arrived ,but I did not konw he ___ until yesterday.
猜你喜欢