Wednesday, December 17, 2008

Forcing some line breaks...

This post gave me a good idea
http://gojomo.blogspot.com/2005/03/cross-browser-invisible-word-break-in.html

In my ASP.NET code I was generating a long url with lots of ....&i=23&j=2343&k=232....

Internet Explorer was very strict at not line breaking this - so I need to encourage it.

Using the post above I decided on:

Response.Write(GenerateFullHRef(true).Replace("&", "&[wbr/]"));

Seemed to work well :)

Note to self - it's time to get a proper tool to post to blogger - this HTML code formatting is doing my nut in!

No comments:

Post a Comment