Value exists in a web page textfield



I want to check a value(for each value in datatable ) that exist or not in the textfield in a web page .
how to do this


If you have a value from TextField and want to check if it exists in datatable’s column (e.g. “text”) then probably the easiest would be use select and check the length of result:

dt.Select("text='" + TextField +"'").Length


Textfield contains number of lines and not in standard format


Then iterate through your datatable and check it the TextField contains a value from current row.
Below example stores the result for each row in column “exist”



Thank you Rafal