Microsoft
70-573 · Question #243
70-573 Question #243: Real Exam Question with Answer & Explanation
The correct answer is D. <SharePointWebControls:InputFormRequiredFieldValidator. MNEMONIC RULE: "InputFormRequiredFieldValidator" RequiredFieldValidator makes sure you provide a value for the field before the form can be
Question
You create a custom page layout that contains the following code segment. (Line numbers are included for reference only.) 01Please enter a number: 02<SharePointWebControls:InputFormTextBox ID="NumberTextBox" runat="server"/> 03 You need to prevent the page from being saved if NumberTextBox is empty. Which code segment should you add at line 03?
Options
- A<script type="javascript">if(document.getElementById('NumberTextBox')
- B<script type="javascript">if(document.getElementById('NumberTextBox')
- C<SharePointWebControls:InputFormCompareValidator ID="NumberValidator"
- D<SharePointWebControls:InputFormRequiredFieldValidator
Explanation
MNEMONIC RULE: "InputFormRequiredFieldValidator" RequiredFieldValidator makes sure you provide a value for the field before the form can be
Community Discussion
No community discussion yet for this question.