473,396 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

access to return object from asp.net in Jquery

4
I have Function in Jquery :

Expand|Select|Wrap|Line Numbers
  1.  function CheckStatus() {
  2.             $.ajax({
  3.                 url: "http://localhost:1111/test.myControl/GetDone",
  4.                 type: "GET",
  5.                 dataType: "jsonp",
  6.                 success: function (data) {
  7.                     console.info(data.GetStatusResult);
  8.                     if (data.IsDone) {
  9.                         result = true;
  10.                         CheckForFile();
  11.                     }
  12.                     else
  13.                         result = false;      
  14.                 }
  15.             });
  16.  
  17.         }
here the function that i call from asp.net mvc3:

Expand|Select|Wrap|Line Numbers
  1. public MStatus GetDone()
  2.             {
  3.                 ......
  4.  
  5.                 return new MStatus {  IsDone = IsDone, NowDateTime=DateTime.Now};
  6.             }
as you see this function returns object - MStatus with variable : IsDone , I tried to check the value of IsDone , but I couldn't , Can someone tell me how to solve my problem!!!

thanks in advance!
Oct 5 '11 #1
2 1939
TWTW
4
i found my Mistake i have to replace the line : data.IsDone with : data.GetStatusResult.IsDone
Oct 5 '11 #2
Frinavale
9,735 Expert Mod 8TB
Thank you for sharing your solution :)

-Frinny
Oct 5 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: klaus triendl | last post by:
hi, recently i discovered a memory leak in our code; after some investigation i could reduce it to the following problem: return objects of functions are handled as temporary objects, hence...
0
by: Otis Hunter | last post by:
I have been fighting with this for days and your expert help is needed! Below is the code I am executing which results with "Object doesn't support this property or method". The error is occuring...
4
by: surindersaini | last post by:
Hi I am not sure if we can do it and if can, then how. I have a class with a property that return object as its return type. when i am trying to Serialize the class it gives me error ...
4
by: Cliff Harris | last post by:
I have a utilities class in my ASP.Net application that encapsulates functions that I use often. I would like to use this class to access some object that I have acces to on a page, like Request,...
0
by: Fabian | last post by:
Hi, I work in asp.net 2.0 create an object in my global.asax file with this code <object Class="myApp.Class" Id="myClass" RunAt="server" Scope="application" /> <script Language="C#"...
0
by: hazz | last post by:
After generating an XML Web Service proxy class using wsdl.exe, I added a proxy class to a new VS2005 project to consume my webservice. I want to call the method ReturnCustomer() whose proxy...
4
by: Doru Roman | last post by:
Hi, I have a class MyClass and in the Button1_click() event I create an instance of that class MyClass myc = new MyClass(); In another event I want to access myc for serialization purposes....
2
by: Jayender | last post by:
Hi, I like to know whether is there any possibilty that accessing the COM object in my Code behind that is placed in aspx page? say the COM object is placed in <object tag, in aspx page and if i...
3
by: Brad | last post by:
I have several movies being presented to the web on a single page and each one is dependant on a link selected. On the .aspx page I have the following code for a single movie. ...
2
by: neovantage | last post by:
Hi Geeks, I am using adodb for accessing my records from MYSQL Database. I define an object of adodb "$db" which is used for executing queries in my configuration file which is accessible in each...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.