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. Working with DataSet on client

Working with DataSet on client

Scheduled Pinned Locked Moved ASP.NET
helpquestioncsharpjavascripttools
3 Posts 2 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.
  • S Offline
    S Offline
    Stephen McGuire
    wrote on last edited by
    #1

    VS2008 Can anyone point me in the right direction for working with a DataSet in Javascript/AJAX.NET? I have seen examples that return a DataSet in a WebMethod and work with the tables and rows from the returned result but I get a 'circular reference while deserializing' error message... I want to be able to call a WebMethod asynchronously, return a DataSet and then populate and Infragistics WebGrid with the data. How do I get the data from the DataSet into the client script? Thanks for any help...

    L 1 Reply Last reply
    0
    • S Stephen McGuire

      VS2008 Can anyone point me in the right direction for working with a DataSet in Javascript/AJAX.NET? I have seen examples that return a DataSet in a WebMethod and work with the tables and rows from the returned result but I get a 'circular reference while deserializing' error message... I want to be able to call a WebMethod asynchronously, return a DataSet and then populate and Infragistics WebGrid with the data. How do I get the data from the DataSet into the client script? Thanks for any help...

      L Offline
      L Offline
      leckey 0
      wrote on last edited by
      #2

      Can you post your code and the line that you are getting the error?

      Shhhhh..... http://craptasticnation.blogspot.com/[^]

      S 1 Reply Last reply
      0
      • L leckey 0

        Can you post your code and the line that you are getting the error?

        Shhhhh..... http://craptasticnation.blogspot.com/[^]

        S Offline
        S Offline
        Stephen McGuire
        wrote on last edited by
        #3

        Thanks for the reply. I have a webmethod server side: <WebMethod> _ Public Shared Function GetDataSet() As DataSet 'Get dataset here... Return ds End Function Client Side: function GetData() { PageMethods.GetDataSet(onSuccess, onFail); } function onSuccess(result) { alert(result.tables[0].rows[0].ColumnName); } function onFail(e) { alert(e.get_message()); } Stepping through, the webmethod runs without error but I get a Deserialization error alert from the onFail function. I have done what the AJAX.NET example I've seen here http://www.ajaxpro.info/Examples/DataSets/default.aspx[^] suggests but I get the above error. Is there something else I need to do, webconfig setting etc?

        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