Apr 18, 2012, 9:16 AM
[CLOSED] Runtime error in abstract component .cs
Hello
when running my application I have this error :
"Ext.Net.Toolbar cannot use content"
on the line
in this function
when running my application I have this error :
"Ext.Net.Toolbar cannot use content"
on the line
return this.ContentContainer.ClientID;
in this function
/// <summary>
/// The id of an existing HTML node to use as the panel's body content (defaults to '').
/// </summary>
[ConfigOption]
[Category("3. AbstractComponent")]
[DeferredRender]
[DefaultValue("")]
[Description("The id of an existing HTML node to use as the panel's body content (defaults to '').")]
public virtual string ContentEl
{
get
{
if (!this.DesignMode)
{
if (this.PreventContent)
{
return "";
}
if (!this.ContentContainer.Visible)
{
return "";
}
if (this.Content == null && this.ContentControls.Count == 0)
{
this.ContentContainer.Visible = false;
return "";
}
this.ContentContainer.Visible = true;
var container = this as AbstractContainer;
if (container != null && this.ContentControls.Count > 0 && container.Items.Count == 0 && container.Layout.IsNotEmpty())
{
return "";
}
}
if (this is INoneContentable)
{
throw new Exception(this.GetType().ToString() + " cannot use Content");
}
return this.ContentContainer.ClientID;
}
}
Last edited by Daniil; Apr 18, 2012 at 12:01 PM.
Reason: [CLOSED]