ラベル retrieving の投稿を表示しています。 すべての投稿を表示
ラベル retrieving の投稿を表示しています。 すべての投稿を表示

2012年3月26日月曜日

Retrieve JSON result set

What is the best method for retrieving a result set and returning a JSON object? I tried using a DataSet, but received a serialization error.

TIA

You do not have to do anything special to convert in JSON. The Asp.net Ajax Automatically handles it. But in case you want to some manual proessing use the JavaScriptSerializer.


You do not have to do anything special to convert in JSON. The Asp.net Ajax Automatically handles it. But in case you want to some manual proessing use the JavaScriptSerializer. The DataSet is not supported with the Current Version, Add the January CTP to work with DataSet and DataTable.


I am a little confused. Can you provide an example of how to retrieve a JSON serialized result set? Where do I find the January CTP?

TIA


You can find the January CTP from this linkhttp://www.microsoft.com/downloads/details.aspx?familyid=4CB52EA3-9548-4064-8137-09B96AF97617&displaylang=en

Retrieving an atlas control object from an html element

Ok I know you can get the HTML element an atlas control is tied to using the associatedElement property of a control object. I was wondering if there is a way in the framework of retrieving a control if you've got the HTML element?

Hi,

yes, you can use the control property. For example, if myElement is a reference to a DOM element that is associated to an Atlas control, you can write

myElement.control;
to get a reference to the Atlas control.

Brilliant, thanks for the help.