How to get Script Notify event for C1HTMLHost Control in Silverlight

Posted by: naveenkumar.ou on 16 May 2018, 9:28 am EST

  • Posted 16 May 2018, 9:28 am EST

    Hello ,

    I am using C1HtmlHost control in my Silverlight Application for opening HTML URL.
    My requirement is I need to run one Javascript function which is present in HTML file of the URL and i need to get back the result returned by Javascript function.
    Is there any Script Notify method for C1HTMLHost?
    Could you please help me.

    Thanks ,
    Naveen
  • Replied 17 May 2018, 8:47 am EST

    Hello Naveen,

    I have understood your requirement and I am investigating on how could that be done.
    Meanwhile, you can have a look at following article, if that might help you:
    https://www.grapecity.com/en/blogs/accessing-silverlight-functions-from-aspx-page-hosted-inside-c1htmlhost

    Thanks,
    Ruchir Agarwal
  • Marked as Answer

    Replied 21 May 2018, 7:27 am EST

    Hello Naveen,

    Please take a look at attached sample application calling JS function present inside *.html and also makes the value returned from function usable across Silverlight application.

    Thanks,
    Ruchir
    C1HtmlHost_JSFunction.zip
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels