views:

60

answers:

2

My current aspx form askes users to input fields into texbox and press submit button. We are thinking of using PUT method that read parameters from the URLs? Any quick solution for this?

+1  A: 

You should look into using ASP.NET MVC. The original version of ASP.NET used POSTbacks a lot in the WebForms model which is why you are seeing that behaviour. It is possible to write HttpHandlers or HttpModules which give you more flexibility without requiring ASP.NET MVC.

BrianLy
I don't know if I'd consider "port app over to asp.net mvc" as a quick solution =).
R0MANARMY
A: 

HTML4 doesn't support PUT method in forms. So using PUT in a form method would generate invalid HTML, and I'm reasonably sure the browser will execute a POST instead of a PUT anyway (at least that's what FF 3.6 did when I tried to change the form method to PUT).

If you want to get information out of the URL, just change the form method to be GET instead of POST.

R0MANARMY