.NET Page Collection in Javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rsdev
    New Member
    • Jul 2007
    • 149

    .NET Page Collection in Javascript

    Hi,

    I am trying to pass the pages control collection into a static method from Javascript, using AJAX web methods.

    Is it possible to reference the .NET page control collection in Javascript and serialize it so that the static method can interpret the collection?

    Thanks in advance.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Can you post some code and also how it turns out on the client-side (what's available to JavaScript).

    Comment

    • rsdev
      New Member
      • Jul 2007
      • 149

      #3
      Originally posted by acoder
      Can you post some code and also how it turns out on the client-side (what's available to JavaScript).
      Hi Acoder,

      Thanks for your response I have decided to take another route as serializing and de-serializing an object from server-side to client-side and back again seems like the long way round my problem. I have used an updatepanel and with asp button control to call a nonstatic method, which can reference the object server-side. Problem solved.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Well, all well and good. It did seem like a server-side problem.

        Comment

        Working...