returning server side class object to javascript.
-
Hi, On server side in form code behind class, I have a function <AjaxPro.AjaxMethod()> _ Public Function test_get() As PROPREGLB.AssetQuerry Dim v As PROPREGLB.AssetQuerry ' v = New PROPREGLB.AssetQuerry v.AddNote("ASP.NET") v.AddNote("2.0") Return v End Function I call this function from my page javascript function test() { var t; debugger; var retobj = AssetDataEntry.test_get(); } when I debug retvalue, I get retvalue as __type "PROPREGLB.AssetQuerry, App_Code.hpedrzja, Version=1.0.5.31325, Culture=neutral, PublicKeyToken=null" How to convert retval as the proper object of PROPREGLB.AssetQuerry What kind of typecast has to be used. I need to call methods available in PROPREGLB.AssetQuerry class from the returned object in javascript also need to avail the existing data(inserted in the server side) in the javascript client side code. any help will be highly apreciated. regards lee
Leya