我有一个向导控件,我有这个代码
protected void Wizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)
{
if (Wizard1.ActiveStepIndex == 0)
{
if (firstName != null && lastName != null)
{
Wizard1.ActiveStepIndex = 1;
}
else
{
e.Cancel = true;
}
}
}
当代码到达 firstName 和 lastName 时,它们都为空,我在上面的前一个方法中填充了它们,在此事件触发之前它们不是空的。我的搜索只让我对原因进行验证,这是罪魁祸首吗?