protected void Page_Load(object sender, EventArgs e) { string option = Request["option"]; if (!string.IsNullOrEmpty(option)) { if (option == "codSecreto") { string valueCod = Request["valueCod"]; if (!string.IsNullOrEmpty(valueCod)) { BrCode brCode = new BrCode(); string responseCode = brCode.GetCodeSecreto(valueCod); if (string.Compare(valueCod, responseCode, false) == 0) { Response.Write("true"); } else { Response.Write("false"); } } else { Response.Write("false"); } } } }