Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do you add a NEW LINE character in the string portion of an ActionLink?

I'm building a Ajax.ActionLink in C# which starts:

<%= Ajax.ActionLink("f lastname", ...more stuff

and I'd like there to be a new line character between the words "f" and "lastname". How can I accomplish this? I thought the special character was \n but that doesn't work, and <br> doesn't work either.

like image 954
Whozumommy Avatar asked Aug 07 '09 15:08

Whozumommy


2 Answers

You might have to revert to doing something like:

<a href="<%= Url.Action("action") %>">f<br />last</a>

And then wire in the Ajax bits manually.

like image 141
Wyatt Barnett Avatar answered Oct 09 '22 09:10

Wyatt Barnett


Try this:

<%= Ajax.ActionLink("f<br />lastname", ...more stuff
like image 35
Andrew Hare Avatar answered Oct 09 '22 07:10

Andrew Hare