but when I apply [ChildActionOnly] to Read(), everytrhing stops working
3 Answers, 1 is accepted
0
Boyan Dimitrov
Telerik team
answered on 12 May 2015, 02:12 PM
Hello Talal,
The ChildActionOnly attribute ensures that an action method can be called only as a child method from within a view. This attribute prevents the action methods from being invoked as a result of a user request.
By default the request's type to the server for read operation should be "POST". Invoking the method via URL should send a "GET" request to the server and throw an error eventually.
Please take a look at the attached example.
Regards,
Boyan Dimitrov
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items