我想在每个循环中只添加一个带有文本框的td,但是无法进行此操作。 [英] i want to add only a single td with text box in the last for each loop but unable to that ..
本文介绍了我想在每个循环中只添加一个带有文本框的td,但是无法进行此操作。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<div class="form_section">
<h1>
<span>Non-HMS Card Plans</span>
</h1>
<div class="form_row_for_tables">
<table class="non_global_card_plans_table" border="0" cellpadding="0" cellspacing="0" >
<thead>
<tr>
<th class="col1" >
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
</th>
<th class="col2">Card Program</th>
<th class="col3">Merchant Number</th>
<th class="col4">Clearance Indicator</th>
<th class="no_border">Rate</th>
</tr>
</thead>
<tbody>
<xsl:for-each select="/M2:Cards/M2:SalesUnit/M2:NonGlobalCards/M2:Card">
<tr>
<td>
<asp:CheckBox ID="cb_Non{M2:Name}" runat="server"/>
</td>
<td >
<xsl:value-of select="./M2:Name"/>
</td>
<td class="no_border">
<asp:TextBox ID="txt_NonMerchantNo{M2:Name}" CssClass="text_medium" MaxLength="17" Enabled="false" runat="server" onkeypress="return checkStringNumber(event,this);"></asp:TextBox>
</td>
<td>
<xsl:choose>
<xsl:when test="count(./M2:Options[@Display = 'dropdown']) > 0">
<asp:DropDownList ID="ddl_NonClearanceInd{M2:Name}" Enabled="false" runat="server">
<xsl:for-each select="./M2:Options/M2:Option[@Name = 'CardName']">
<asp:ListItem Value="{@ProviderName}">
<xsl:value-of select="."/>
</asp:ListItem>
</xsl:for-each>
</asp:DropDownList>
</xsl:when>
<xsl:otherwise>
<asp:label id="lbl_NonClearanceInd{M2:Name}" runat="server" text="{./M2:Options/M2:Option[@Name = 'CardName']/@ProviderName}" ></asp:label>
</xsl:otherwise>
</xsl:choose>
</td>
<xsl:if test="/M2:Cards/M2:SalesUnit/M2:NonGlobalCards/M2:Card[@CardID='5006']">
<td class="no_border">
<asp:TextBox ID="txt_Rate{M2:Name}" CssClass="text_medium" MaxLength="17" Enabled="true" runat="server" Text="2.75%" onkeypress="return checkStringNumber(event,this);"></asp:TextBox>
</td>
</xsl:if>
</tr>
</xsl:for-each>
<!--<xsl:if test="/M2:Cards/M2:SalesUnit/M2:NonGlobalCards/M2:Card[@CardID='5006']">
<td class="no_border">
<asp:TextBox ID="txt_Rate{M2:Name}" CssClass="text_medium" MaxLength="17" Enabled="true" runat="server" Text="2.75%" onkeypress="return checkStringNumber(event,this);"></asp:TextBox>
</td>
</xsl:if>-->
</tbody>
</table>
</div>
推荐答案
无法理解您的问题。能不能再解释一下。
Not able to understand your problem. Can you please explain little bit more.
这篇关于我想在每个循环中只添加一个带有文本框的td,但是无法进行此操作。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文