Default TextBox values
<p>Problem:
There are 4 text boxes. If the user does not wish to fill all of them out, then it should display "0" and get saved.</p>

<p>For example:
I only fill out two textboxes out of the four. I hit Save.
It should automatically save the default values ("0") for those two empty textboxes.</p>

<p>Here is the code (javascript):</p>

<p>This is the Textbox: </p>

<pre><code>&lt;td width="20%"&gt;
asp:TextBox ID="left" runat="server"&gt;&lt;/asp:TextBox&gt;
px
                    &lt;/td&gt;
</code></pre>

<p>This is the save button:</p>

<pre><code> &lt;asp:Button ID="save" Text="Save" 
                            OnClick="btn_save_click" OnClientClick="return Validate();" runat="server"/&gt;
</code></pre>

<p>This is the Validate() function:</p>

<pre><code>function Validate() {
       var value5 = document.getElementById('&lt;%=left.ClientID%&gt;').value;

            if (value5 == '') {
                alert("Please enter the missing fields");
                return false;
            }
}
</code></pre>
