This is a migrated thread and some comments may be shown as answers.

Intercept link clicked in html placeholder.

3 Answers 56 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 21 Sep 2009, 10:55 PM
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

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 22 Sep 2009, 09:43 AM
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.
0
Valentin.Stoychev
Telerik team
answered on 22 Sep 2009, 09:44 AM
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.
0
Valentin.Stoychev
Telerik team
answered on 22 Sep 2009, 09:44 AM
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.
Tags
HTMLPlaceHolder
Asked by
Adam
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or