This is a migrated thread and some comments may be shown as answers.

[Solved] Filter postback

2 Answers 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andy Yu
Top achievements
Rank 1
Andy Yu asked on 01 Dec 2010, 04:12 PM
Hi,
I've got a search page with a couple of parameters. The search results are displayed using a serverside binded Grid. The search are submitted to the server via HttpPost to a action. This works good.

I've got a problem when I try to use grid filters. When I set the filter the whole page is posted back to the server via HttpGet and it calls the HttpGet version of the action instead of the HttpPost version.

Are there a way to make the Filter button do a postback via HttpPost instead of a HttpGet so the right action method is called? 


Regards,
Andy Yu

2 Answers, 1 is accepted

Sort by
0
minkbear
Top achievements
Rank 1
answered on 16 Dec 2010, 11:37 PM
I have the same problem. Solution I think is send a keyword for search by HTTPGET instead of HTTPPOST.

Any comment are welcome.

minkbear
0
Jann
Top achievements
Rank 1
answered on 17 Dec 2010, 06:07 PM
HTTP Post is ment for operations that update/delete things. A search should use HTTP GET.
Tags
Grid
Asked by
Andy Yu
Top achievements
Rank 1
Answers by
minkbear
Top achievements
Rank 1
Jann
Top achievements
Rank 1
Share this question
or