Pnotify Implementation Server side

805 Views Asked by At

I want to implement a server side Pnotify function in ASP.NET/C#. Please help I have tried, but nothing is happening. I am also using a master page.

$(function () {
    new PNotify({
        title: 'Regular Notice',
        text: 'Check me out! I\'m a notice.',
        type: 'success',
        cornerclass: 'ui-pnotify-sharp',
        styling: 'bootstrap3'
    });
});
2

There are 2 best solutions below

1
vikas_sharma On

Just add this in head section of page. this worked for me

<script type="text/javascript">
function () {
    new PNotify({
        title: 'Regular Notice',
        text: 'Check me out! I\'m a notice.',
        type: 'success',
        cornerclass: 'ui-pnotify-sharp',
        styling: 'bootstrap3'
    });
};
</script>
0
Kenan Akdemir On
<!-- Theme JS files -->
    <script type="text/javascript" src="assets/js/plugins/notifications/pnotify.min.js"></script>

You need to upload the pnotify Javascript files at the top of the page.