如何在javascript中获取实体? [英] How to get an entity in javascript?
本文介绍了如何在javascript中获取实体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的asp.net代码中使用了一个实体,说人".现在我有一种情况,我必须在javascript中获取该实体才能在该实体上应用for循环.我如何在javascript中获得那个.有人要求我使用Jason来获得那个,但我从未使用过Jason.请为此提供指导,而不是提供指向www.google.com.pk
的链接
预先感谢
Hi,
I am using an entity say Person in my asp.net code. Now I have a situation where I have to get that entity in javascript to apply a for loop on this entity. How can I get that one in javascript. Someone has asked me to use Jason to get that one but I have never used Jason. Please guide in this regard instead of provding a link to www.google.com.pk
Thanks in advance
推荐答案
是的,您将必须使用JSON.首先要了解JSON并在ASP.NET中使用它,您必须首先在
中了解JSON的基础知识.
http://loianegroner.com/2009/12/getting-started-with-json/ [< ^ ]
然后在下面的链接中研究在ASP.NET中使用JSON.
http://msdn.microsoft.com/en-us/library/bb299886.aspx [ ^ ]
该链接提供了有关JSON基础的更多信息,并提供了在ASP.NET中使用JSON的示例.我相信这会对您有所帮助.
Yes, you will have to use JSON. To begin with knowing about JSON and using it in ASP.NET, You will have to go through the basics of JSON first in
http://loianegroner.com/2009/12/getting-started-with-json/[^]
Then look in to working with JSON in ASP.NET in the link below.
http://msdn.microsoft.com/en-us/library/bb299886.aspx[^]
This link provides more information about the basics of JSON and also with examples of using JSON in ASP.NET . I believe this will be helpful to you.
这篇关于如何在javascript中获取实体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文