日期:2014-05-17  浏览次数:20444 次

c#怎么判断input里不能全为空格 新手求指教 谢谢
                           <tr>
                                <td>
                                    企业名称
                                </td>
                                <td>
                                    <input type="text" name="companyname" id="companyname" maxlength="50" style="width: 250px;
                                        height: 20px;" value="<%=CompanyName %>" /><span style="font-size: 8px; color: Red;">*</span>
                                    <script type="text/javascript">
                                        var companyname = new LiveValidation('companyname');
                                        companyname.add(Validate.Presence, { failureMessage: "必填项" });
                                        companyname.add(Validate.Length, { minimum: 6, tooShortMessage: "企业名太短" });