日期:2014-05-20  浏览次数:20531 次

js或者jquery判断DataGrid模板列中lable的text 是否为空
VS 2003 不方便调前台代码 想实现这个判断,但是 又不会JS ,来个JS 的帮个忙
HTML code

<TABLE border=0 cellSpacing=0 cellPadding=0 width=650>

  <TR border="1">

    <TD style="FONT-SIZE: 16px">上传员工资料 </TD>

    <TD><A href="../archive_info/archive_add.aspx?type='append'">添加</A> </TD></TR>

  <TR>

    <TD colSpan=2>

      <TABLE id=tableNecessary border=0 width="99.5%">

        <TR>

          <TD style="COLOR: #333333; FONT-SIZE: 14px" bgColor=#9db8e8 

            colSpan=3>员工资料上传--必要资料 </TD></TR>

        <TR>

          <TD width="99.5%">

    <table cellspacing="0" rules="all" border="1" id="DataGridNecessary" width="100%">

        <tr>

            <td>资料名称</td><td>文件名称</td><td>操作列</td>

        </tr><tr>

            <td>户口本复印件</td><td>

                                                        

                                                        <span id="DataGridNecessary__ctl2_Lbl_Nece">Blue hills.jpg</span>

                                                    </td><td>

                                                        

                                                        <input type="submit" name="DataGridNecessary:_ctl2:linkUpNece" value="重新上传" id="DataGridNecessary__ctl2_linkUpNece" />

                                                    </td>

        </tr><tr>

            <td>毕业证书</td><td>

                                                        

                                                        <span id="DataGridNecessary__ctl3_Lbl_Nece">Blue hills.jpg</span>

                                                    </td><td>

                                                        

                                                        <input type="submit" name="DataGridNecessary:_ctl3:linkUpNece" value="重新上传" id="DataGridNecessary__ctl3_linkUpNece" />

                                                    </td>

        </tr>

    </table></TD></TR></TABLE></TD></TR>

  <TR>

    <TD colSpan=2>

      <TABLE id=tableNon width="99.5%">

        <TR>

          <TD style="COLOR: #333333; FONT-SIZE: 14px" bgColor=#9db8e8 

            colSpan=3>员工资料上传--非必要资料</TD></TR>

        <TR>

          <TD>

<table cellspacing="0" rules="all" border="1" id="DatagridNon" width="100%">

        <tr>

            <td>资料名称</td><td>文件名称</td><td>操作列</td>

        </tr><tr>

            <td>身份证复印件</td><td>

                                                        

                                                        <span id="DatagridNon__ctl2_Lbl_Non">Winter.jpg</span>

                                                        <asp:HyperLink ID="href1" NavigateUrl=""></asp:HyperLink>

                                                    </td><td>

                                                        

                                                        <input type="submit" name="DatagridNon:_ctl2:LinkUpNon" value="重新上传" id="DatagridNon__ctl2_LinkUpNon" />

                                                    </td>

        </tr>

    </table></TD></TR></TABLE></TD></TR>

  <TR>

    <TD colSpan=2>

      <TABLE id=tablebtn width="99.5%">

        <TR>

          <TD width="20%" align=center>

<input type="submit" name="btn_Confirm" value="提交资料" id="btn_Confirm" /></TD></TR></TABLE></TD></TR></TABLE>

            

</td></tr></table>