Trigger ImageButton Click with a HttpWebRequest

  • Thread starter Thread starter Benjamin Schwitter
  • Start date Start date
B

Benjamin Schwitter

Hello all

I have been experimenting with System.Net.HttpWebRequest.

No problems with "normal" GET's and POST's. I can pass form data and I
receive the result correctly, as if a user browsed the site.

My problem is, that I can't figure out, how to trigger the clickevent from a
serverside ImageButton. We use them in one of our apps and my testcases also
have to cover this.
It's quite clear that I can't simulate a mouseclick with a HttpWebRequest.
But even the mouseclick has to end in an HTTP-Request to transmit it to the
server.
There has to be a way to simulate this.

Has anyone ever done this? Has anyone any idea?

Thanx

Benjamin Schwitter
 
Thanx for the reply! That will do the trick! We will consider this option.

Benjamin Schwitter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top