Intercept link clicked in html placeholder.

4 posts, 0 answers
  1. Adam
    Adam  avatar
    30 posts
    Member since:
    Jun 2009

    Posted 21 Sep 2009 Link to this post

    I'm using html placeholder to display html using the htmlsource property. This source may contain links to other pages. Is there anyway to intercept when a link is clicked (in the code behind perhaps?) to do different things when different links are clicked?

    Thanks,

    Adam
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 22 Sep 2009 Link to this post

    Hello Adam ,

    There is no support for this in the HtmlPLaceholder. A possible solution will be if you are not using a direct HREF attribute in the html link tags, but using a javascript function to navigate instead. This javascript function then can call a Silverlight method from your application and then you can add your custom code.

    you can check this msdn article to see how to make the connection between the Javascript and Silverlight:
    http://msdn.microsoft.com/en-us/library/cc221414(VS.95).aspx

    Greetings,
    Valentin.Stoychev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 22 Sep 2009 Link to this post

    Hello Adam ,

    There is no support for this in the HtmlPLaceholder. A possible solution will be if you are not using a direct HREF attribute in the html link tags, but using a javascript function to navigate instead. This javascript function then can call a Silverlight method from your application and then you can add your custom code.

    you can check this msdn article to see how to make the connection between the Javascript and Silverlight:
    http://msdn.microsoft.com/en-us/library/cc221414(VS.95).aspx

    Greetings,
    Valentin.Stoychev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 22 Sep 2009 Link to this post

    Hello Adam ,

    There is no support for this in the HtmlPLaceholder. A possible solution will be if you are not using a direct HREF attribute in the html link tags, but using a javascript function to navigate instead. This javascript function then can call a Silverlight method from your application and then you can add your custom code.

    you can check this msdn article to see how to make the connection between the Javascript and Silverlight:
    http://msdn.microsoft.com/en-us/library/cc221414(VS.95).aspx

    Greetings,
    Valentin.Stoychev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top