I have perfomed the 'Try it out' up to and including step 7 on page 304 and everything works as it is supposed to. What is odd is that the last 2 steps, 8 and 9 aren't working. The message box does not appear. There are only 3 small change to make. The problem must be someware else. I'f searched the forum and have see where the Java script can cause problems but that looks good to. What else can I check?
Here is the markup for the changes.
Code:
<td class="style3" colspan="3">
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
HeaderText="Please correct the following errors before you press the Send button"
ShowMessageBox="True" ShowSummary="False" />
</td>
Code:
<script type="text/javascript">
function ValidatePhoneNumbers(source, args)
{
var txtPhoneHome = document.getElementById('<%= txtPhoneHome.ClientID %>');
var txtPhoneBusiness = document.getElementById('<%= txtPhoneBusiness.ClientID %>');
if (txtPhoneHome.value != ' ' || txtPhoneBusiness.value != ' ')
{
args.IsValid = true;
}
else
{
args.IsValid = false
}
}
</script>