开发者

difference between Label classes

What is the difference between

system.windows.forms.label 

and

system.web.ui.webcontrols.label controls

if at all? In what context would we use one or the other开发者_如何学运维?


Just as the inheritance suggests, you would use the System.Windows.Forms.Label in a Windows Forms application.

In ASP.NET, you have a choice between using System.Web.UI.WebControls.Label and System.Web.UI.WebControls.Literal. Here is a good explanation on the difference between Label and Literal.


system.windows.forms.label is used when you develop a desktop application and other while developing a web application


system.windows.forms.label : Represents a standard Windows label and used in desktop applications.

system.web.ui.webcontrols.label : Represents a label control, which displays text on a Web page and used in web application.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜