Last post Dec 22, 2005 04:07 PM by Lennon][
Dec 22, 2005 01:20 PM|Lennon][|LINK
I trying to create a module that reads data posted from a form (using the POST method). I'm using Request.Form["name"] etc to get the data in the Page_Load method.
I've added my module to a page, I've set up a form on another page to post to the page with my module on.
My problem is in debugging the module. I add a breakpoint to the Page_Load method of my module, I run VS.NET 2003 in debug mode, I press the submit button on the form, and I get a 'System.missingmethodexception' appear in VS.
If I just go directly to the page with my module on, then it hits the breakpoint no problem, it's only when I post data to the URL, that I get the error.
Is this normal? Is there anyway of debugging a module which gets invoked through a form post?
Dec 22, 2005 02:56 PM|thecrispy1|LINK
I am not sure exactly as I haven't encountered this myself but this could be because it is trying to get to something it doesn't have access too.
You are mentioning Post, but I am not sure why you are doing this. The only reason i can think of is you are interacting with another site. If you are doing this in a single module, I am not sure why you need to use Post. Please explain a bit more.
Dec 22, 2005 04:07 PM|Lennon][|LINK
Yes it's because I'm integrating with another site. Someone will fill in a form on another site, and that data will be posted to my site. I just supply them with the URL. The other site has told me that they can send the data as an HTTP post or as XML.