protected void ButtonSave_Click(object sender, EventArgs e) { string redRom = Rom.GetRedRomIdByRomName((TextBoxDescription.Text.Length == 0) ? "" : TextBoxDescription.Text).RomId; if (TextBoxDescription.Text.ToUpper() == "EUGENE" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "VD MERWE" && TextBoxPassword.Text == "vdmerwe123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "FANNIN" && TextBoxPassword.Text == "fannin123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "GOOLAB" && TextBoxPassword.Text == "goolab123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "DUNLOP" && TextBoxPassword.Text == "dunlop123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "ALLIE" && TextBoxPassword.Text == "allie123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "TWALA" && TextBoxPassword.Text == "twala123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "BERRY" && TextBoxPassword.Text == "berry123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "PEREIRA" && TextBoxPassword.Text == "pereira123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "PAULS" && TextBoxPassword.Text == "pauls123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "DUBE" && TextBoxPassword.Text == "dube123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "HINSON" && TextBoxPassword.Text == "hinson123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "LOTTER" && TextBoxPassword.Text == "lotter123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "VAN VUUREN" && TextBoxPassword.Text == "vanvuuren123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "MALAN" && TextBoxPassword.Text == "malan123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "VILJOEN" && TextBoxPassword.Text == "viljoen123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "BEHNE" && TextBoxPassword.Text == "behne123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "EVA" && TextBoxPassword.Text == "eva123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "WALE" && TextBoxPassword.Text == "wale123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "ATHANATOS" && TextBoxPassword.Text == "athanatos123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "WYNGAARD" && TextBoxPassword.Text == "wyngaard123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } //else if (TextBoxDescription.Text.ToUpper() == "SIBANDA" && TextBoxPassword.Text == "sibanda123") //{ // Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); //} else if (TextBoxDescription.Text.ToUpper() == "SHABANGU" && TextBoxPassword.Text == "shabangu123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "SVILJOEN" && TextBoxPassword.Text == "sviljoen123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "TSHAKA" && TextBoxPassword.Text == "tshaka123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "BRITS" && TextBoxPassword.Text == "brits123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "HAIMBODI" && TextBoxPassword.Text == "haimbodi123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "OLSEN" && TextBoxPassword.Text == "olsen123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "JONCK" && TextBoxPassword.Text == "jonck123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "VDRHEEDE" && TextBoxPassword.Text == "vdrheede123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "JANKIELSOHN" && TextBoxPassword.Text == "jankielsohn123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "BENSCH" && TextBoxPassword.Text == "bensch123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "TSHOKO" && TextBoxPassword.Text == "tshoko123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "KAUFMAN" && TextBoxPassword.Text == "kaufman123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else if (TextBoxDescription.Text.ToUpper() == "ALEC" && TextBoxPassword.Text == "alec123") { Response.Redirect(String.Format("TargetCaptureList.aspx?RedRom={0}", redRom)); } else { LabelError.Text = "Incorrect User Name/ Password."; PanelError.Visible = true; } }
protected void ButtonSave_Click(object sender, EventArgs e) { string romId = Rom.GetRedRomIdByRomName((TextBoxDescription.Text.Length == 0) ? "" : TextBoxDescription.Text).RomId; if (TextBoxDescription.Text.ToUpper() == "EUGENE" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "VD MERWE" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "FANNIN" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "GOOLAB" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "DUNLOP" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "ALLIE" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "TWALA" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "BERRY" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "PEREIRA" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "PAULS" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "THOMAS" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "HINSON" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "LOTTER" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "VAN VUUREN" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "MALAN" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "VILJOEN" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "BEHNE" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "EVA" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "WALE" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else if (TextBoxDescription.Text.ToUpper() == "HINSON" && TextBoxPassword.Text == "Spar123") { Response.Redirect(String.Format("TargetCapture.aspx?RomId={0}", romId)); } else { LabelError.Text = "Incorrect User Name/ Password."; PanelError.Visible = true; } }