The example is great, but needs tweaking if you want to use it with master pages. See
https://pbickford.wordpress.com/2015/03/28/using-bootstrap-modal-dialogs-with-asp-net-and-master-pages/
...