I have two textboxes. My objective is to do client-side validation to ensure that at least one, but not more than one of them has a value in it.
When I try to run this code I get a null exception when trying to get the length of D1 (even though I had entered a value in Warn1DaysTextBox). Do I have to do something special to access them since the textboxes are in a FormView?
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Test.aspx.vb" Inherits="LPICert.Test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function jsXOR() ...
Go to the complete details ...