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

Silverlight UI HyperlinkButton - what property gives the URL link

1 Answer 21 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Padma
Top achievements
Rank 1
Padma asked on 10 Aug 2012, 07:22 PM

I am not able to find the property which gives the hRef link  of the HyperlinkButton.

ArtOfTest.WebAii.Silverlight.UI.HyperlinkButton.Text  -> just gives the display text
ArtOfTest.WebAii.Silverlight.UI.HyperlinkButton.NavigateURI is  empty when I try to use...

Also,
ArtOfTest.WebAii.Controls.HtmlControls.HtmlAnchor.HRef  gives partial link only...
Example:
The complete link is..

http://leolab.company.com/CLName/Leo Web Service Kerberos setup steps.docx

but,  Href only gives  /CLName/Leo Web Service Kerberos setup steps.docx

thanks!

1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 14 Aug 2012, 02:48 PM
Hello Padma,

When I tested a Silverlight HyperLinkButton, the following worked correctly:

HyperlinkButton hlb = Pages.SilverlightToolkitSamples.SilverlightApp.CodeplexHyperlinkButton;
Log.WriteLine(hlb.NavigateUri);

When I tested an HtmlAnchor, the following worked correctly:

HtmlAnchor a = Pages.Bing.MapsLink;
Log.WriteLine(a.HRef);

A partial link will be returned if that's how the linked is defined in the DOM/Visual Tree.

Greetings,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Padma
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Share this question
or