protected void btnVerPreguntas_click(object sender, EventArgs e) { txtlogin.Text = txtlogin.Text.PadLeft(8, '0'); Pregunta1.DataTextField = "NRO_DOCUMENTO"; Pregunta1.DataValueField = "Respuesta"; Pregunta1.DataSource = SQLHelper.ExecuteDataset(Cache["ApplicationDatabase"].ToString( ), "GetQuestion1", new object[] { txtlogin.Text }); Pregunta1.DataBind( ); if (Pregunta1.Items.Count > 2) { txtlogin.Enabled = false; TablaPreguntas.Visible = true; Error.Visible = false; Session["UserImpersonate"] = "AR" + txtlogin.Text; Pregunta2.DataTextField = "CALLE"; Pregunta2.DataValueField = "Respuesta"; Pregunta2.DataSource = SQLHelper.ExecuteDataset(Cache["ApplicationDatabase"].ToString( ), "GetQuestion2", new object[] { txtlogin.Text }); Pregunta2.DataBind( ); Pregunta3.DataTextField = "LOCALIDAD"; Pregunta3.DataValueField = "Respuesta"; Pregunta3.DataSource = SQLHelper.ExecuteDataset(Cache["ApplicationDatabase"].ToString( ), "GetQuestion3", new object[] { txtlogin.Text }); Pregunta3.DataBind( ); } else { Error.Visible = true; Error.Text = "No existe el legajo, por favor ingrese un legajo válido!"; } }
public void IngresarLinkPreguntasFrecuentes() { System.Threading.Thread.Sleep(1400); LinkPreguntasFrecuentes.Click(); Pregunta1.Click(); System.Threading.Thread.Sleep(1400); Pregunta2.Click(); System.Threading.Thread.Sleep(1400); Pregunta3.Click(); System.Threading.Thread.Sleep(1400); Pregunta4.Click(); System.Threading.Thread.Sleep(1400); Pregunta5.Click(); System.Threading.Thread.Sleep(1400); Pregunta6.Click(); System.Threading.Thread.Sleep(1400); Pregunta7.Click(); System.Threading.Thread.Sleep(1400); Pregunta8.Click(); System.Threading.Thread.Sleep(1400); Pregunta9.Click(); System.Threading.Thread.Sleep(1400); Pregunta10.Click(); System.Threading.Thread.Sleep(1400); Pregunta11.Click(); System.Threading.Thread.Sleep(1400); Pregunta12.Click(); System.Threading.Thread.Sleep(1400); Pregunta13.Click(); System.Threading.Thread.Sleep(1400); Pregunta13.Click(); System.Threading.Thread.Sleep(1400); Pregunta14.Click(); System.Threading.Thread.Sleep(1400); Pregunta14.Click(); System.Threading.Thread.Sleep(1400); Pregunta15.Click(); System.Threading.Thread.Sleep(1400); Pregunta17.Click(); System.Threading.Thread.Sleep(1400); Pregunta18.Click(); System.Threading.Thread.Sleep(1400); Pregunta19.Click(); System.Threading.Thread.Sleep(1400); Pregunta20.Click(); System.Threading.Thread.Sleep(1400); Pregunta21.Click(); System.Threading.Thread.Sleep(1400); Pregunta22.Click(); System.Threading.Thread.Sleep(1400); }