Hi,
I'm coding a framework for testing aspx pages. It's a simple program
that checks that:
- The requested page is the same as the received.
- If an exception occurred creating the response html.
- If the requested page contains an errorLabel.
Some pages contain events with code behind functionality e.g. a button
click event.
I want to simulate the button click. Does anybody know how to do that?
I use the HttpWebRequest class to call the pages to test.
HttpWebRequest webReq =3D (HttpWebRequest )WebRequest.Create(url);
HttpWebResponse webResp =3D (HttpWebResponse )webReq.GetResponse();