Hi there,
I have a Wizard control on my page with 3 steps (for an application process). Everything works except returning someone to the first step when when they fail a (very) basic login.
The code is below (the linq returns and test correctly for the null value, but then if just ignores my setting og the ActiveStepIndex and proceeds to step 2 (index 1).
protected void Wizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)
{
if (Wizard1.ActiveStepIndex == 0)
{
loginuser();
}
}
private void loginuser()
{
if (txtLoginEmailAddress.Text != "" && txtLoginPassword.Text != "")
{
using (aoecmisDataContext db = new aoecmisDataContext())
{
var m = db.Members.FirstOrDefault(i => i.Member_Password == txtLoginPassword.Text && i.Member_ ...
Go to the complete details ...