使用基于Ajax的Jquery JTable和Entity Framework在mvc3中显示父表的子记录。 [英] using Ajax Based Jquery JTable and Entity Framework to display the child records for Parent Table in mvc3.

查看:92
本文介绍了使用基于Ajax的Jquery JTable和Entity Framework在mvc3中显示父表的子记录。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我在mvc3中使用2个Jtables。 1代表父代,另一代代表子表。点击Jtable中的父表行我想在子表中显示相应的值。



我将显示父记录。但我的问题是如果父表会有子记录在数据库中然后整个父表将不会显示并得到这样的错误



错误:

发生错误在与服务器通信时。



如何显示父表从数据库获取数据的子记录。我正在使用实体框架进行数据库。在数据库表中将有主数据库关键和外键关系就在那里。



Plz帮助我。帮助我们将不胜感激。



< br $>




问候,

Suneetha。

解决方案

< blockquote>是的,你正确的Sunitha ......我也遇到了同样的问题你得到了什么..如果你有任何解决方案请让我知道......非常感谢你:)


参考这篇文章



使用ASP.NET MVC 3和jTable jQuery插件的基于AJAX的CRUD表 [ ^ ]

In my application i am using 2 Jtables in mvc3. 1 for parent and other for child table. on click of a parent table row in Jtable i want to display corresponding values in child table.

I will display the parent records .But my problem is If the parent table will have the child records in database then whole Parent table will not be displayed and getting the error like this

Error:
An error occured while communicating to the server.

How to display the child records for Parent Table getting data from database.I am using Entity framework for database.In Database tables will have Primary key and foreign key relationship is there.

Plz help me.Help will be appreciated.




Regards,
Suneetha.

解决方案

Yes your correct Sunitha... am also facing the same problem what you are getting..If you Got any solution Please Let me know..am very Thankful to you:)


Refer this article

AJAX based CRUD tables using ASP.NET MVC 3 and jTable jQuery plug-in[^]


这篇关于使用基于Ajax的Jquery JTable和Entity Framework在mvc3中显示父表的子记录。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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