在DataList中的tr标签中添加一个类

时间:2019-06-26 15:24:43

标签: javascript html asp.net

我有这样的代码:

    <class abstract="false" deprecated="not deprecated" extends="java.lang.Object" extends-generic-aware="java.lang.Object" jni-extends="Ljava/lang/Object;" final="true" name="a" static="false" visibility="public" jni-signature="Lsdk4/wangpos/libemvbinder/a;">
      <constructor deprecated="not deprecated" final="false" name="a" jni-signature="()V" bridge="false" static="false" type="sdk4.wangpos.libemvbinder.a" synthetic="false" visibility="public">
      </constructor>
      <field deprecated="not deprecated" final="true" name="a" jni-signature="Z" static="true" transient="false" type="boolean" type-generic-aware="boolean" visibility="public" volatile="false">
      </field>
      <field deprecated="not deprecated" final="true" name="b" jni-signature="Ljava/lang/String;" static="true" transient="false" type="java.lang.String" type-generic-aware="java.lang.String" value="&quot;sdk4.wangpos.libemvbinder&quot;" visibility="public" volatile="false">
      </field>
      <field deprecated="not deprecated" final="true" name="c" jni-signature="Ljava/lang/String;" static="true" transient="false" type="java.lang.String" type-generic-aware="java.lang.String" value="&quot;debug&quot;" visibility="public" volatile="false">
      </field>
      <field deprecated="not deprecated" final="true" name="d" jni-signature="Ljava/lang/String;" static="true" transient="false" type="java.lang.String" type-generic-aware="java.lang.String" value="&quot;&quot;" visibility="public" volatile="false">
      </field>
      <field deprecated="not deprecated" final="true" name="e" jni-signature="I" static="true" transient="false" type="int" type-generic-aware="int" value="1" visibility="public" volatile="false">
      </field>
      <field deprecated="not deprecated" final="true" name="f" jni-signature="Ljava/lang/String;" static="true" transient="false" type="java.lang.String" type-generic-aware="java.lang.String" value="&quot;1.3&quot;" visibility="public" volatile="false">
      </field>
    </class>

它变成网页HTML,如下所示:

<asp:Panel ID="pnlResult" runat="server" Visible="false">
  <asp:DataList  ID="dlResults" runat="server" OnItemDataBound="dlResults_ItemDataBound">
    <ItemTemplate> 
      <asp:Label  ID="lblContent" runat="server" Text=""></asp:Label>
    </ItemTemplate>
  </asp:DataList>
</asp:Panel>

我想在我的<table id="ctl00_ContentPlaceHolder1_dlResults" cellspacing="0" border="0"> <tr> <td> <span id="ctl00_ContentPlaceHolder1_dlResults_ctl00_lblContent" >bla bla bla</span> </td> </tr> <table>标签中添加一个类,因为我想在JS中使用它

0 个答案:

没有答案