26.06.2017 Views

Bootstrap for ASP.NET MVC

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 3<br />

The result will look like the following screenshot in your browser:<br />

Alerts<br />

The alert component is used to provide visual feedback to the user. This can be used<br />

to provide the user with either conirmation messages that a record has been saved,<br />

warning messages that an error occurred, or an in<strong>for</strong>mation message based on a<br />

system event.<br />

<strong>Bootstrap</strong> provides four differently styled alerts. For instance, the following markup<br />

generates a green, blue, orange, and red alert box:<br />

Success. You have<br />

successfully saved the file.<br />

Info. Something has just<br />

happened.<br />

Warning! The file size is too<br />

big.<br />

Danger! The file could not be<br />

saved.<br />

[ 67 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!