20 February 2012

Confirmation before window closes

The script below is to display to us a confirmation button(ok/cancel) before windows really closed.


    <script type="text/javascript">
           window.onbeforeunload = function(evt) {
            var message = 'Apakah anda yakin menutup laman ini?';
            if (typeof evt == 'undefined') {
                evt = window.event;
            }
            if (evt) {
                evt.returnValue = message;
            }
            return message;
        }
    <script>

06 February 2012

Failed to access IIS metabase

What kind of error is this?? - That's the first thought that came to my mind...
Yeah. This was the problem recently i face.

You know what.. the solution was never been so hard..
i just did this... re-install iis

this is how you do it..
- go to command promt,
- go to this directory 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727'
- write this : 'aspnet_regiis -i


that solve the problem.
 

Twiit.. Twiit... Gulp