Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. returning server side class object to javascript.

returning server side class object to javascript.

Scheduled Pinned Locked Moved ASP.NET
debuggingcsharpjavascriptasp-netsysadmin
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yang__lee
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups