Hi,
Below is the code snippet that I wrote which is working, but when decorated with HttpPost verb it's not working.
Please let me know your thoughts on it.
Example
MVC action method
- [Httppost]
- [OutputCache(Duration = 0, VaryByParam = "*", NoStore=true)]
- public ActionResult sample([DataSourceRequest]DataSourceRequest request, int ? id)
- {
- respective code will be here and that return view
- return View (Name, layourUrl, viewModel);
- }
- JS
- function edir(id){
- $('body').focus();
- window.setTimeout(function(){
- var window=$("#popup").data("kendoWindow");
- var PopUpTitle="name";
- window.setOptions({
- title:PopUpTitle,
- content:"Loading...",
- height:"620px",
- width:"980px"
- });
- window.refresh({
- url:"/controller/Action_mathod" + id,
- type:"POST"
- });
- window.open();
- window.center();
Thanks,