基地类别包括实地镜头,但其类型(网站.App_Code.CustomLabelControl)与控制类型(网站.App_Code.CustomLabelControl)不一致。
我以同样的方式做了许多海关控制,但今天我发现这一错误。
I have a web application project with the below class in App_Code
directory a tagprefix reference in web.config for the control in class.
www.un.org/Depts/DGACM/index_spanish.htm 现在我做了些什么?
Web.Config
<system.web>
<pages>
<controls>
<add namespace="web.App_Code" tagPrefix="CControls"/>...
Markup
<form id="form1" runat="server">
<div>
<CControls:CustomLabelControl runat="server" OnClickText="Welcome" ID="lbl">
</CControls:CustomLabelControl>
</div>
</form>
Class File
namespace web.App_Code
{
public class CustomLabelControl : Control, IPostBackEventHandler, IPostBackDataHandler
{
private string _onClickText;
public CustomLabelControl()
{
}
public string OnClickText
{
get { return _onClickText; }
set { _onClickText = value; }
}
public void RaisePostBackEvent(string eventArgument)
{
throw new System.NotImplementedException();
}
public bool LoadPostData(string postDataKey, NameValueCollection postCollection)
{
throw new System.NotImplementedException();
}
public void RaisePostDataChangedEvent()
{
throw new System.NotImplementedException();
}
}
}