忙考试啊.可以考试过后吗
很愿意帮你 但是...
英语翻译
英语翻译
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.
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.
其他人气:526 ℃时间:2020-03-29 14:08:58
优质解答
我来回答
类似推荐
猜你喜欢
- 1椭圆x26+y22=1和双曲线x23-y2=1的公共焦点为F1,F2,P是两曲线的一个交点,那么cos∠F1PF2的值是( ) A.13 B.23 C.73 D.14
- 2用弧度制表示X轴非负半轴上的角的集合
- 3可交换矩阵具有相同特征向量?求证
- 4据说元素周期表是门捷列夫在梦中创造的,这属于潜意识么?
- 5回忆,怎么造句?
- 6一个数的6分之1比3分之5的4倍多4分之1,求这个数
- 7直线ab、cd相交于点o,oe平分角bod,角aod=2个角aoc,求角aoc和角boe的度数 需要过程
- 8有一台汽油机效率为25%,每小时耗汽油1kg.已知汽油的热值为4.6×10000000j/kg,求这台汽油机的效率.
- 9I can work ( ) my computer.A:for B:in C:with
- 10I' ll lend it to you as you handle it with care 之意