我有一个用户配置,除其他控制外,使用用户配置。
在<代码>ascx中,第一卷有以下代码:
<%@ Register TagPrefix="tag" Namespace="some.name.space" Assembly="some.assembly" %>
<tag:control ID="test" runat="server" />
在我的<代码>Page_Load方法中,我试图像样在试验中设定一个财产:
test.Text = "Hello World!";
这实际上把字面控制的案文财产定在我的用户控制下test
。
这是一种例外:
不针对物体的事例提出反对
试图确定
lblTest.Text = value;
页: 1
我没有正确地增加用户控制? 在登记塔格人时,我是否应该——或者我是否必须——具体说明<代码>Src的财产? 如果是的话,我必须登记我使用的每一用户控制?
This also results in no controls loading in usercontrol and all controls are null within usercontrol.