0

I want to browse to an intranet page and click on a button there.

  1. I saw that its possible to to this on winform How to click a button on an ASP.NET web page programmatically? but I need it in asp.net.

  2. i even saw a solution where they turn the stream into a picture of the page. Yet my need it to click a button ruther that to see the page.

For example: I want to load the page www.google.com in an iframe or other component in my asp.net page and then have access to the google search button:

enter image description here

8
  • If I understand correctly... You're asking how to programmatically click a button within an iframe from the parent page's JavaScript code? Commented Jan 17, 2017 at 20:47
  • forget it. Tell us what you really need. Commented Jan 17, 2017 at 20:48
  • Yes but the web page i'm calling is not mine... The "google search" logic should do its magic... Or in my case the relevant button should do the same action it would do if i clicked it manually Commented Jan 17, 2017 at 20:50
  • set the src attribute of iframe to https://www.google.com/search?q=stackoverflow Commented Jan 17, 2017 at 20:53
  • @Igor:I have a system at work that have page for each item e.g. Http://sys.htm?item=1000 when I click the button the status changes and I need to do it for a lot of items.... Hoped for a shortcut... Commented Jan 17, 2017 at 20:54

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.