AI OnAI Off
protected void override OnInit(EventArgs ea)
{
if( myXFormControl.Data.HasAlreadyPosted( this ))
{
// switch to statistics view
}
}
Regards,
Johan Olofsson
EPiServer AB
override protected void OnInit(EventArgs e)
{
PropertyXForm form = XFormProperty.InnerProperty as PropertyXForm;
if (form.XFormControl.Data.HasAlreadyPosted(this.Page))
EPiServer.Core.PropertyXForm propXForm = XFormProperty.InnerProperty as EPiServer.Core.PropertyXForm;
EPiServer.XForms.XFormData formData = propXForm.Form.CreateFormData();
formData.ChannelOptions = EPiServer.XForms.ChannelOptions.Database;
if(formData.HasAlreadyPosted( this.Page ))
{
Response.Write( "already voted" );
}
Regards,
Johan Olofsson
EPiServer AB