Click here to Skip to main content
16,021,417 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I search a web page if it contains a login, whether it is JavaScript or html? I think I should search within the page code for input type="password" and input type="username" i use c# windows forms .. plz help me ??

What I have tried:

input type="password" and input type="username" i use c#
Posted
Updated 19-Jul-18 8:02am

1 solution

As javascript and html are both text files; you can simply read the file stream and see if it contains the desired text.

If you want to do a little more with the HTML, you can add HTML Agility Pack to your project and you can parse through it
 
Share this answer
 
Comments
Mohammad Shaheen 19-Jul-18 14:12pm    
But how can I search within Java Script
MadMyche 19-Jul-18 14:40pm    
If you want to parse it out; you could use JINT (Javascript interpreter) which is available as a NuGet package (as well as the HTML Agility Pack)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900