Is there a way to read the content of the page first line, word for example. I need to configure my script so it will execute the next command only if the first word of the page will be "OK" for instance and stop the user if its something else.
Use WebParseDataBound prior to your call to the page containing the value you are trying to check. In the function, make sure that the string variable you are writing into is large enough to capture the "OK" that you are looking for.
After you make the call to the page, use StrSearch to search for "OK" in your variable. Better yet, use StrSearchDelimited if the "OK" could have something else in it's place, such as having tags around it or something. That way, if there are different values present, you can have logic to handle each one.