没有击中断点kendo MVC C#应用程序 [英] Not hitting breakpoint kendo MVC C# application

查看:79
本文介绍了没有击中断点kendo MVC C#应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我正在浏览我的视图中使用kendo的mvc c#应用程序。我的veiw代码是(片段):

Hi, everyone I am working on a mvc c# application using kendo in my views. My veiw code is (snippet):

.DataSource(dataSource => dataSource
                            .Ajax()
                            .Batch(true)
                            .ServerOperation(false)
                            .Read(read => read.Action("WrongDelivery_Read", "DirectDataInput"))
                            .PageSize(100)
                            .Model(model => model.Id(inv => inv.WrongDelivEvent_Id))
                            .Destroy(update => update.Action("WrongDelivery_Destroy", "DirectDataInput"))
                        )





但是当我按下编辑按钮并将断点放在



But when I press the "Edit" button and put breakpoint at

WrongDelivery_Destroy

方法时,断点不会被击中。任何帮助或建议将不胜感激。



我尝试过:



我试图在google和stackoverflow中搜索任何解决方案,但没有找到任何合适的。

method, the breakpoint is not hit. Any help or advise will be appreciated.

What I have tried:

I tried to search in google and stackoverflow for any solution but did not find anything appropriate.

推荐答案

WrongDelivery_Destroy 映射到你的删除控制器通过Destroy()方法。



可以映射以下方法。



- 创建

- 阅读

- 更新

- 销毁



有效地为您提供完整的CRUD功能。您需要实现Update()方法进行编辑。
WrongDelivery_Destroy is mapped to your delete controller via the Destroy() method.

The following methods can be mapped.

- Create
- Read
- Update
- Destroy

Effectively giving you full CRUD functionality. You need to implement the Update() method for editing.


断点不起作用,因为实际上没有代码可以执行。 Kendo命令只发送给客户端的javascript代码。实际上没有任何服务器端执行,除了Controller代码,这些方法被映射为在调用它们时使用。你最好在你告诉控制器调用的Controller方法上设置断点,而不是在Kendo的东西上。
The breakpoint doesn't work because there's really no code to execute there. The Kendo commands just generat javascript code that is sent to the client. There's really nothing server-side that executes, other than the Controller code those methods are mapped to use when they are called. You'd be better off setting breakpoints on the Controller methods you told the control to call, not on the Kendo stuff.


这篇关于没有击中断点kendo MVC C#应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆