CheckBoxList validation

Within our current project, we faced a requirement such that there are multiple checkboxes and the user is required to select any one of them (at least one of them). So as there are multiple checkboxes, decided to go with CheckBoxList control. Now the problem is that, we need to show a error message if the user is not selected any one of them. The problem also extends not just there, but the display text should be culture specific. So the story started long after I’ve written this post. But editing this entire post due to a simple non supportive … Continue reading CheckBoxList validation

The importance of ‘Return’ keyword at JavaScript

Recently, while coding for a Text Field value padded with left zeros, realised the importance of the RETURN key word for the FUNCTION written in JavaScript. Before i mention the actual importance, let me describe you the situation. Scenario: A Text box need to be padded with zeros and should have the length of 7 digits, even the data entered is less than 7. Ex: When the key board input being 88, the text box should show 0000088. Note the ZEROs padded on left. So, started with a JavaScript function as mentioned below function PadZeros(x) { var v = x.value; … Continue reading The importance of ‘Return’ keyword at JavaScript