AI OnAI Off
The PagingControl will trigger validation of the xform - a workaround is to loop through the controls in pre_render and set CausesValidation="false".
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
foreach (Control c in epiPageList.PagingControl.Controls)
{
if (c is LinkButton)
(c as LinkButton).CausesValidation = false;
}
}
hi!
i'm using an EPiserver:Pagelist and a XForms:XFormcontrol on the same page in a CMS-site. when i click on one of the pagenumber in the pagingcontrol, it submits the xform instead of getting the next set of items in the pagelist. both the pagingcontrol and the xform uses webform_DoPostBackWithOptions. what am i missing here?