Reputation: 11
i have this in my vb.net code. label1.text = "Click on THIS ONE to proceed"
Now for the THIS ONE in the label text i want to give it a hyperlink or response.redirect. Any ideas how i can do this?
Upvotes: 1
Views: 14952
Reputation: 63126
My recommendation here would be to do it the following way.
Replace the Label control with a Literal then do it this way
literal1.Text = "Click on <a href='yoururl'>THIS ONE</a> to proceed"
Upvotes: 1
Reputation: 887449
You cannot do this inside a single label.
Instead, you can use a Literal
control and set the Text
to include an <a>
tag.
Alternatively, you can use a server-side hyperlink control.
Upvotes: 0