Custom Error Message with Line breaks in password portal RRS feed

  • Question

  • Hello,

    I'm trying to customize the access denied message that a user receives when trying to reset a password.  I'm using the Strings.Resources file however I cannot get a line break inserted.  Here is the piece of code from strings.resources:

      <data name="ErrorDescription_3001" xml:space="preserve">
        <value>Some information for the user on line 1

                   more information for the user on line 2

                   more info on line 3.               

    Can anyone tell me how to get line breaks so all of those lines actually display on separate lines.

    Thank you!

    Saturday, September 21, 2013 3:26 PM

All replies

  • Hi,

    never done this by myself, so just a guess:

    Maybe a html linebreak is possible usinng <br/> or like this &lt;br/&gt; 


    Peter Stapf - Doeres AG - My blog:

    • Edited by Peter_Stapf Saturday, September 21, 2013 5:36 PM
    Saturday, September 21, 2013 4:59 PM
  • Peter, thank you for the response.  I tried <br/> and it just defaulted to the canned message.  I used &lt;br/&gt; and it displayed <br/>.

    I've tried various other methods using \r\n, \\n, &#xD0; and other carriage return codes to no avail.

    Thanks again for throwing the idea out there.


    Saturday, September 21, 2013 6:27 PM
  • ok, then maybe this isn't possible in the xml file, what about the css-sytlesheet.

    I don't know the html output of this error page but maybe you can implement something link that in the link below, depends on the html tags used.


    Peter Stapf - Doeres AG - My blog:

    Sunday, September 22, 2013 9:08 AM
  • This appears to be the CSS it is using.  Modifying this hasn't worked.

      Copyright (c) Microsoft Corporation.  All rights reserved.  

        margin-bottom: 15px;
        font-size: 1.0em;
        margin-bottom: 15px;

    Sunday, September 22, 2013 2:40 PM
  • Hi,

    I have also tried all these methods to insert line break into <value> tag but everytime i also got the same result.

    So, I tried "&nbsp" and lots of these to insert a new line. I was successfully able to get the new line.

    And one more thing never copy paste the text in between <value> tags. Always write it all by yourself.

    I hope this will help.


    Giriraj Singh

    Monday, September 23, 2013 1:17 PM
  • Thank you for the reply.  If I add &nbsp to my xml it bypasses it and uses the default. 

    I tried it several ways:

    &nbsp, &nbsp; etc...

    Monday, September 23, 2013 1:29 PM
  • Hi,

    I made a typo. It should be "&nbsp;" and Make sure that don't ever copy-Paste the text.

    • Edited by GirirajSingh Tuesday, September 24, 2013 3:49 PM
    Tuesday, September 24, 2013 3:49 PM
  • Think you can post your code from the strings.resources file?
    Tuesday, September 24, 2013 5:05 PM