When I serve up the page, it displays a webform. This is correct, as the http post I make to the web page must simulate a form being submitted.
In other words (laymens example), on the webpage, there is a form field called 'username'. If you type in a username there and click submit, the code behind would check if the username exists on the system and then return either "Exists" or "Invalid" to a label on the page.
What I am trying to do now is exactly the same, but via an Http Request from a different application. I would supply the username as the buffered stream via the HttpRequest and expect a response that says "Exists" or "Invalid".
Thanks
Main Topics
Browse All Topics





by: mrjoltcolaPosted on 2009-06-18 at 07:09:41ID: 24657503
What happens when you try the same URL from a browser? http://localhost/TestListe ner.aspx
Do you get the HTML or do you get the results of the code execution.
The fact that you see HTML in the result string usually indicates that the page itself is being served up instead of executed as an "Active Server" page.