TomAllenSmith 0 Newbie Poster

Hello, I'm making a program that interacts with an asp.net webpage. I need to check if the webpage is displaying specific text. Normally I would use the following code.

if (webBrowser1.DocumentText.Contains ("") {
        Action here;
}

But I can't find the text displayed on the webpage in the source. I was wondering if there was any way around this? Help would be much appreciated.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.