jueves, 22 de febrero de 2007

Error en el evento Page_Load

Cuando aparece el siguiente error:

The command 'MovePrevious' is not valid for the previous step, make sure the step type is not changed between postbacks

Significa que en el evento Page_Load hay un error:

if (Page.IsPostBack == true) //ERROR
{
Wizard1.ActiveStepIndex = 0;
}

En lugar de usar if (Page.IsPostBack == true), debería ser: (Page.IsPostBack != true)

No hay comentarios: