Mar 05, 2009, 6:38 AM
[CLOSED] error after last update
Hi
I get an error after my update. All i do is to insert html in a panel that exists inside a tabpage. This insert is made from a AjaxMethod. please help. The error I get is "Html property and Body template can't be used at one time."
/ContentPanel.cs
protected override void SweepControls(WebControl item)
{
base.SweepControls(item);
if(this.Body != null && !string.IsNullOrEmpty(this.Html))
{
throw new ArgumentException("Html property and Body template can't be used at one time.");
}
if (this.BodyContainer != null && !this.DesignMode) <-- Marks this line in the sourcecode
{
this.BodyContainer.ID = string.Concat(this.ID, "_Body");
this.BodyContainer.Attributes.Add("class", "x-hidden");
}
}
/Mikael