среда, 25 августа 2010 г.

UserControl's RenderControl is asking for a form tag in (C# .NET) - Stack Overflow

UserControl's RenderControl is asking for a form tag in (C# .NET) - Stack Overflow



Alternatively you could disable the ServerForm/Event-validation on the page that is rendering the control to a string.
The following example illustrates how to do this.

 public override void VerifyRenderingInServerForm(Control control)
{ /* Do nothing */ }

public override bool EnableEventValidation
{
get { return false; }
set     { /* Do nothing */}
}

Комментариев нет: