哪个控件在asp.net中加载第一个html或web服务器控件 [英] which control load first html or web server control in asp.net

查看:62
本文介绍了哪个控件在asp.net中加载第一个html或web服务器控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

i只想知道哪个控件加载第一个html或web服务器控件在asp.net????div class =h2_lin>解决方案

事实上两者。在运行时,Asp.net控件也转换为Html控件。

如果你想更改任何值,U可能会在页面加载时间内发生变化。

首次调用将是代码端(服务器端),然后是Aspx页面。


当客户端向Web服务器请求页面时,为该页面生成的输出是HTML。假设您有一个包含两个控件的页面:span标签和asp标签。在这种情况下,后面的(asp Label)将转换为其等效的HTML标记(span)。所以重点是带有asp:标签的控件(服务器控件)被转换为HTML控件(客户端)。如果您看到任何aspx页面的来源,您会注意到输出中没有asp:标记。只是客户端控件不是由ASP.Net引擎转换的。因此,仅在需要时才使用服务器控件。而且,输出作为流返回,因此首先没有控制范围。


页面中的第一个初始对象。


hello all,
i just want to know which control load first html or web server control in asp.net???

解决方案

In Fact Both. In Run time Asp.net controls also converted to Html Controls.
If you want to Change any values,U may change in Page Load Times.
First Call will be Code side(Server Side) then it comes to Aspx Page.


When a client makes request for a page to the web server, the output generated for that page is HTML. Suppose you have a page with two controls: a "span" tag and an asp "label". in this case the later (asp Label) will be converted into its equivalent HTML markup(span). So the point is the controls with "asp:" tags(server controls) are converted into HTML controls(client side). If you see the source of any aspx page you will notice there is no "asp:" tag in the output. Its just that client side controls are not converted by the ASP.Net engine. So its good to use server controls only when they are required. And also, the output is returned as a stream so there is no scope for which control first.


first initial object in your page.


这篇关于哪个控件在asp.net中加载第一个html或web服务器控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆