Call smart client method from javascript

J

JM

Hi all,

I have developed a windows form user-control that I plan to use in a
web-page (with the <object> tag).
I works well and I can get/set standard properties (e.g. 'Text') and custom
properties of the control in javascript from the web-page client side, but I
can't figure how to expose a custom method to javascript. Of course I can
declare a property that triggers a call to a method to do the job, but I was
wondering if there's a cleaner way?

Thanx.

JM.
 
P

Paul

JM,

Why can't you just define a method as usual and call it from javascript?
Properties are just methods in disguise anyway so the mechanics aren't
different.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top