PDA

View Full Version : [CLOSED] Easy way to acces vb.net object in javascript



supera
Apr 05, 2012, 9:09 PM
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?

geoffrey.mcgill
Apr 05, 2012, 9:12 PM
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.

supera
Apr 10, 2012, 12:48 PM
One more question!

It's prefered use the directMethod or a json webservice to return this object to javascript?

Daniil
Apr 10, 2012, 1:13 PM
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.

supera
Apr 10, 2012, 1:20 PM
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.