【发布时间】:2013-07-08 10:10:06
【问题描述】:
我需要动态创建一个 System.Web.UI.WebControls.Label 并在 Asp.net 页面中定义它的坐标。
我知道它的绝对位置 (x,y)。但我不知道如何定义它。 以下是我创建标签的方式:
System.Web.UI.WebControls.Label box3 = new System.Web.UI.WebControls.Label();
box3.Text = entradas.ElementAt(0).text;
box3.ID = "box3";
//need to define x and y here
问题是如何定义它的位置。 提前致谢
【问题讨论】:
-
你听说过CSS吗?
-
是的,我做到了,但我不能用它来满足我的需要
标签: c# asp.net label web-controls