parse the URI using encodeURIComponent() function

If you want to parse your URI then you should have to use  encodeURIComponent() function problem –  I have following code in common.js file. logic is if HighlightTextBox if data is not matching and RemoveHighlightTextBox if data is matching. url = /Services/GetAutoCompleteData?v= name = My & Son actualUrl = /Service/GetData?v=My & Son&eq=true //debuge following js code and found above values //here… Read More parse the URI using encodeURIComponent() function

Jquery validation for date less than today

var isAlreadySubmitted = false; $(function () { $(‘#RequisitionDate’).datepicker(); $(“#RequisitionDate”).datepicker(“option”, “dateFormat”, “M d, yy”) }); the above script will gives up todays date $(document).ready(function () { selectTab(); generateValidator($(“#frmOrn”)); $(“#OrderRequisitionNoteTypeName”).rules(‘add’, { isNotEmptyGuid: [“#OrderRequisitionNoteType”, “Order Requisition Note Type”] }); $(“#RequisitionDate”).rules(‘add’, { lessThanOrEqualToCurrentDate: [new Date().toDateString(), “Requisition Date must be less than or equal to today.”] }); }); the below… Read More Jquery validation for date less than today

Validation enable disable at client side MVC

Hi, We can easily enable/ disable validation of any field on client side using following code. @{ Html.EnableClientValidation(false); } @{ Html.EnableClientValidation(true); }   Example: If in model class we have all the properties with isrequired parameter and we need to set isrequired = false for any one of them then use the above syntax to… Read More Validation enable disable at client side MVC