Friday 27 March 2015

[SOLVED] how to know if page is refreshed in javascript

add this to the need to check is closed or refreshed !!


<script type="text/javascript">

window.onunload = function (e) {
// Firefox || IE
e = e || window.event;
var y = e.pageY || e.clientY;
if (y < 0) {
alert("close");
}
else {
alert("refresh");
}
}

</script>

Monday 2 March 2015

[Solved] http error 503. the service is unavailable iis

Follow the steps:

Steps 1: Open IIS Manager (short command: inetmgr) with Administrator Authentication

Solving IIS 7 Error 503 Service Unavailable
Step 2: Open the Application Pools node underneath the machine node. Select the Application Pool you want to change to run under an automatically generated Application Pool Identity. Here I’m selecting ‘Your Application Name’ Application Pool.

Solving IIS 7 Error 503 Service Unavailable

Step 3: Now right click on the selected Application Pool and click on ‘Advance Settings’ option.

Solving IIS 7 Error 503 Service Unavailable
Solving IIS 7 Error 503 Service Unavailable

Now here you have to set Start Automatically property ‘true’ and set Identity property is ‘ApplicationPoolIdentity’.
Solving IIS 7 Error 503 Service Unavailable
Solving IIS 7 Error 503 Service Unavailable
Now click button ‘Ok’, your configuration setting will be saved.


Reference from : http://www.mindstick.com