Posts

Showing posts from 2013

Validating percentage values in jquery

Image
To validate 100% value in textbox using juery focusout event.We can display error message in alert message window

<!DOCTYPEhtml><htmlxmlns="http://www.w3.org/1999/xhtml"><head><title></title><scriptsrc="Scripts/jquery-3.1.1.js"></script><scriptsrc="Scripts/jquery.validate.js"></script></head><body><div><inputtype="text"id="txtboxId"></div><script>         $('input[id$="txtboxId"]').focusout(functionname);    function functionname(sender, args) {       var maxKPIPercentage = 100;       var totalKPIPercentage = 0;       $('input[id$="txtboxId"]').each(function () {          if ($.trim($(this).val()).length > 0) {            var ctrlVaL = $.trim($(this).val()).replace(/[%,]+/g, '');            totalKPIPercentage = totalKPIPercentage + parseFloat(ctrlVaL);                 };             });             if…

Find Radcombobox values in jquery

<script type="text/javascript">
            $(document).ready(function () {

                $("#<%=cboToEdition.ClientID%>").change(function () {
                    var cboToval = $('#<%= cboToEdition.ClientID %> option:selected').val();
                    var cboFromval = $('#<%= cboFromEdition.ClientID %> option:selected').val();
                    //alert(cboToval + "&" + cboFromval);
                    if (cboFromval > cboToval) {
                        alert("From value shouldn't be greaterthan To value");
                        //                    } else {
                        //                        alert("hello2");
                    }
                });
            }); </script>

An existing connection was forcibly closed by the remote host - WCF

Image
When WCF connection closed forcefully we need to increase the data size length and other respective properties