I'm creating a string in my code-behind, part of which contains a hyperlink. I have created my URl like so:

Uri dispURI = new Uri("/thispage.aspx");

How do I display the hyperlink in the following manner:

Pseudo-code

String dispStr = "lorem ipsum " + dispURI.textToDisplay("custom text" + " dolor";

So that the resulting page looks like this:

Lorem ipsum custom text dolor

Related posts

Recent Viewed