teknofile
|
| Posted: 06/05/2002, 3:44 PM |
|
I've picked up something weird in a project using asp/templates.
I have a page with a record form which has two fields that are validated. If there's no content in these fields, the page displays again. The odd part happens when the page is displayed in "error" mode. ie, if thepage is redisplayed because a user hasn't completed a field.
In the first display, I have a label which displays content from the database, and in the before show event I use the replace method to convert line breaks to <br> tag. It displays fine, with breaks in all the right places. On the second display, the breaks don't appear. Is it something I'm doing wrong ?
|
|
|
 |
teknofile
|
| Posted: 06/05/2002, 3:52 PM |
|
Put it in before show update event, and all works fine...
|
|
|
 |
|