message like "throw new HttpException" but green

Hi people.

How do I send a message like a "throw new HttpException" but green color and same format to indicate that everything was OK?


Look at:

"Flash Data" explains how to set messages for the user.


[size="3"]Hi MetaCrawler. Thanks for your answer.

It works correctly.

But I do not get the message with the desired appearanceā€¦ like "throw new HttpException" but green.

In addition I lose the main layout.[/size]