Question : asp.net form: field valadation how to format these form fields

I need to validate the the entry was only numeric and the length must be 8 numbers>
--------------------------------
<asp:TemplateField HeaderText="VinSerial" SortExpression="VinSerial">
                        <InsertItemTemplate>
                            <asp:TextBox ID="VinSerialNumber" runat="server"
                                Text='<%# Bind("VinSerial") %>'></asp:TextBox>
                            &nbsp;<asp:RequiredFieldValidator ID="VinSerialValidator" runat="server"
                                ControlToValidate="VinSerialNumber" ErrorMessage=" *"></asp:RequiredFieldValidator>
                                 <asp:RangeValidator id="lthSerialNumber"
                                 ControlToValidate="VinSerialNumber"
                                Numbers only??????
                                MinimumLength="8"
                                MaximumLength="8"
                                ErrorMessage="The Length must be 8!"
                                Display="Dynamic"
                                runat="server" />

                        </InsertItemTemplate>
                    </asp:TemplateField>

--------------------------------------------------------------------

I need to know how to validate a user enter a ligit year between 1980 and current year

 <asp:TemplateField HeaderText="Year" SortExpression="Year">
                        <InsertItemTemplate>
                            <asp:TextBox ID="Year" runat="server" Text='<%# Bind("Year") %>'></asp:TextBox>
                            &nbsp;<asp:RequiredFieldValidator ID="YearValidator" runat="server"
                                ControlToValidate="Year" ErrorMessage=" *"></asp:RequiredFieldValidator>
                        </InsertItemTemplate>
                    </asp:TemplateField>

Answer : asp.net form: field valadation how to format these form fields

If they really are SATA (many servers use SAS drives instead of SATA), then yes, just read them in another PC. As they aren't setup as a RAID array you should have no issues reading them, and it should trash them either.
Random Solutions  
 
programming4us programming4us