none
Javascript cannot contact with custom control RRS feed

  • 问题

  • Hello,

    I was working on the custom controls, now the problem is that I've got a data in javascript, and I want it send back to the custom control. I've tried  two ways:

    build HiddenField control in the custom control and in javascript use jQuery('#id').val(...) to set the value of the HiddenField, then I can get the data I wanted back in custom control cs file. But the value I got is always nothing in spite the value in javascript seemed already correctly set. I'm confused..

    The other way is create a static fuction in custom control and try to fuction it in javascript, but it cannot be found in javascript, it seemed like what can be found in javascript must comes from its own background code..

    Anyone can help me?

    2013年9月29日 3:12

全部回复