How to get Script Notify event for C1HTMLHost Control in Silverlight

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

    • Post Options:
    • Link

    Posted 16 May 2018, 12: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

  • Posted 16 May 2018, 11:47 pm 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

  • Posted 20 May 2018, 10:27 pm 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