Follow by Email

Sunday, April 20, 2014

[RESOLVED] Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

Hi here i will show how to resolve this below error which usually occurs when we access a website hosted over IIS.

Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

1. go to cmd and run as administrator.

2. and type this below code and hit enter. Thus it will resolve ur issue.

%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i

3.  check the .net version your are using for your website and change the .net version according to it in the          cmd.
     In my case i was using .net 4.0.

Sunday, April 13, 2014

Sample Code to validate from date and to date in JavaScript/jquery || checkin date and checkout date validation using JavaScript(js)

 Javascript :

Below is the code to validate fromdate and todate using javascript.

   function validateDate() {

            var fromdate, todate, date1, date2;
            var chkFrom = document.getElementById('date');
            var chkTo = document.getElementById('date2');

            fromdate = chkFrom.value;
            todate = chkTo.value;

            date1 = new Date(fromdate);
            date2 = new Date(todate);

            if (date2 <= date1) {
                alert("To date Should be greater than From date");

                return false;
            return true

Web Page:

calling the above javascript function on button click

 <button type="button" id="btnsubmit" class="btn"  onclick="return validateDate();"> Submit</button>