[CLOSED] Easy way to acces vb.net object in javascript

  1. #1

    [CLOSED] Easy way to acces vb.net object in javascript

    Hi

    Ext.net provider a easy way to acces vb.net object in javascript?

    I have a object in my aspx.page (in realy, this object is stored in a session)... I would like get this object (and your properties) in javascript function.

    I think create a directmethod function and return this object...

    this is the way?
    Last edited by Daniil; Apr 10, 2012 at 12:23 PM. Reason: [CLOSED]
  2. #2
    Quote Originally Posted by supera View Post
    Hi

    Ext.net provider a easy way to acces vb.net object in javascript?

    I have a object in my aspx.page (in realy, this object is stored in a session)... I would like get this object (and your properties) in javascript function.

    I think create a directmethod function and return this object...

    this is the way?
    Yes, you should be able to send the object to the server via a DirectMethod.
    Geoffrey McGill
    Founder
  3. #3
    One more question!

    It's prefered use the directMethod or a json webservice to return this object to javascript?
  4. #4
    Hi,

    Well, DirectMethod and WebService are not concurrents.

    I guess you mean: "What is the best - make a request to a page or a WebService?" Right?

    Well, if you can access a required object within a WebService, so, it looks better in the performance aspect than a request to a page.

    A DirectMethod (not static) request to a page causes a common page life cycle to be executed.
  5. #5
    Hi Daniil!

    It´s exactly what I wish know.

    Thanks a lot!

    If you want close this thread, you can. The question is completely answered.

Similar Threads

  1. Replies: 0
    Last Post: Oct 21, 2011, 3:04 AM
  2. Replies: 1
    Last Post: Sep 22, 2011, 4:21 PM
  3. Draggable Accordion Panels Easy?
    By cgountanis in forum 1.x Help
    Replies: 2
    Last Post: Dec 16, 2009, 11:48 AM
  4. Replies: 1
    Last Post: Sep 04, 2009, 12:26 PM
  5. Easy way to make custom combo box
    By glenh in forum 1.x Help
    Replies: 1
    Last Post: Aug 20, 2009, 6:14 AM

Posting Permissions