ASP.NET 4 & C# and
I would like to know which CODE, Classes could be useful for creating a WEB APPLICATION that could:
01 - Connect to an HTML file on the web.
02 - Parse its content (text content).
03 - Find out specific content in a page (for example looking for specific keywords).
Also how to implement:
04 - How to submit information programmatically in HTML page (feeling forms).
I am interested in understanding Classes and general practice and CODE for accomplish this task.
If you have any idea please let me know. Thanks guys once again for your support! 🙂
I’m not sure if you want all of the things that you mention to execute ‘server-side’, but assuming that this is the case:
Check out the
WebClientclass, and theHttpWebRequestclass for more advanced scenarios.You might want to look at the Html Agility Pack, or if Bobince doesn’t notice, regular expressions.
Typically, this will require sending a HTTP POST request, which too can be accomplished with the
HttpWebRequestclass.