Call smart client method from javascript

  • Thread starter Thread starter JM
  • Start date Start date
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.
 
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.
 
Back
Top