daveomcd
daveomcd

Reputation: 6555

ASP.NET: How to make a link multiline?

I'm wanting to make an address a hyperlink. It would appear as follows...

123 Sesame Street
New York, NY 12345

Now I want it to act as one link and still show up in that format. At the moment I've got it as the same link to two different Labels, but this doesn't seem like the right way to go. How can I improve my current method? Thanks!

Upvotes: 2

Views: 784

Answers (2)

Ashok Padmanabhan
Ashok Padmanabhan

Reputation: 2120

Can you use plain html for the link instead of a label server control?

<a href=#>123 Sesame Street <br /> New York, NY 12345 </a>

That would render on 2 lines as 1 link

Upvotes: 1

Matt Smucker
Matt Smucker

Reputation: 5244

Add a page break in between the text

<br />

Upvotes: 4

Related Questions