Friday 18 November 2016

Confirmation alert before close browser Tab

<html>
<head>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
    <script>
        window.onbeforeunload = function (e) {
            e =  window.event;
            // For IE and Firefox prior to version 4
            return false;
            if (e) {
                e.returnValue = 'Any string';
            }

            // For Safari
            return 'Any string';
        };

        $(function () {
            $(".btn3").click(function (e) {
                window.onbeforeunload = null;//after click this button alert not showm
            });
        });
    </script>
</head>
<body>
           <form action="#" method="get">
                <input type="submit" value="submit" class="btn" />
            </form>
            <input class="btn btn1" type="button" value="btn1" />
            <input class="btn btn2" type="button" value="btn2" />
            <input class="btn btn3" type="button" value="btn3" />
</body>
</html>

Thursday 3 November 2016

Login failed for user 'NT AUTHORITY\SYSTEM'

Steps:
1.Open IIS ->Application Pools -> DefaultAppPool -> Advanced Settings ->
set
Identity=ApplicationPoolIdentity

2.Restart IIS

3.Now try with application.