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

[Solved] How to make ajaxRequest use GET in stead of POST

4 Answers 83 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lasse
Top achievements
Rank 1
Lasse asked on 25 Jan 2012, 11:37 PM
Hi there,

Is it possible to make splitterPane.ajaxRequest() use GET method in stead of POST when making the request to the server?

I would like to be able to continue having to methods using the same name in my controller, one having the [HttpPost] attribute for handling POST requests, and one without for handling GET requests.

I believe it is normal practice in MVC to have two methods for eg. Edit and Delete - one for HttpPost and one for HttpGet?

Thanks

4 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 26 Jan 2012, 12:58 PM
Hello Mikkel,


I am afraid that changing the submit method is not possible. What you can do is submit additional value to the action method which indicates whether you want to just retrieve the form or to post it.


Regards,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Lasse
Top achievements
Rank 1
answered on 26 Jan 2012, 02:06 PM
Maybe you should consider providing a parameter for explicitly using GET/POST?
0
Petur Subev
Telerik team
answered on 30 Jan 2012, 03:35 PM
Hello again Mikkel,

Thank you for the suggestion - I will forward it to our Dev team for consideration.

All the best,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Shawn
Top achievements
Rank 2
answered on 01 Jul 2012, 08:45 AM
Yes I agree it would be good use a GET instead of a POST to load up the splitter content
Tags
Splitter
Asked by
Lasse
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Lasse
Top achievements
Rank 1
Shawn
Top achievements
Rank 2
Share this question
or