I'm trying to find the number that the person wrote in the box in the document.getElementByID on the site, however I do not know how to do it in C #, or tried at least:
private void btnvalidar_Click(object sender, EventArgs e)
{
if (webrequestNumero.Document.GetElementById("Numero").InnerText.IndexOf(txtNumero.Text) == -1)
{
MessageBox.Show("O número está na lista");
}
else
{
MessageBox.Show("O número não está na lista");
}
}
Could anyone explain what's wrong with the code?