Which code segment should you add at line 03?

You create a custom page layout that contains the following code segment. (Line numbers are included for reference only.)

You need to prevent the page from being saved if NumberTextBox is empty
Which code segment should you add at line 03?
A. <script type="javascript">if(document.getElementById(‘NumberTextBox’).value = ”) return false;</script>
B. <script type="javascript">if(document.getElementById(‘NumberTextBox’).value = ”) return true;</script>
C. <SharePointWebControls:InputFormCompareValidator ID=”NumberValidator” runat=”server” ControlToValidate=”NumberTextBox”/>
D. <SharePointWebControls:InputFormRequiredFieldValidator ID=”NumberValidator” runat=”server” ControlToValidate=”NumberTextBox”/>

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.