本文介绍了替换字符串C#中的值不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<tbody><tr class="ind_calc_preview_schedule_header">
<td id="fixedStartDate" class="resultsSubHeader">
Fixed Start
</td>
<td id="fixedEndDate" class="resultsSubHeader">
Fixed End
</td>
<td style="display: none;" id="floatingStartDate" class="resultsSubHeader">
Floating Start
</td>
<td style="display: none;" id="floatingEndDate" class="resultsSubHeader">
Floating End
</td>
<td class="resultsSubHeader">
Notional
</td>
<td class="resultsSubHeader">
Drop
</td>
</tr>
<tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Apr-2011</td><td class="ind_calc_date_column">16-May-2011</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">16-May-2011</td><td class="ind_calc_date_column">14-Jun-2011</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Jun-2011</td><td class="ind_calc_date_column">14-Jul-2011</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Jul-2011</td><td class="ind_calc_date_column">15-Aug-2011</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">15-Aug-2011</td><td class="ind_calc_date_column">14-Sep-2011</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Sep-2011</td><td class="ind_calc_date_column">14-Oct-2011</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Oct-2011</td><td class="ind_calc_date_column">14-Nov-2011</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Nov-2011</td><td class="ind_calc_date_column">14-Dec-2011</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Dec-2011</td><td class="ind_calc_date_column">17-Jan-2012</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">17-Jan-2012</td><td class="ind_calc_date_column">14-Feb-2012</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Feb-2012</td><td class="ind_calc_date_column">14-Mar-2012</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Mar-2012</td><td class="ind_calc_date_column">16-Apr-2012</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">16-Apr-2012</td><td class="ind_calc_date_column">14-May-2012</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-May-2012</td><td class="ind_calc_date_column">14-Jun-2012</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Jun-2012</td><td class="ind_calc_date_column">16-Jul-2012</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">16-Jul-2012</td><td class="ind_calc_date_column">14-Aug-2012</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Aug-2012</td><td class="ind_calc_date_column">14-Sep-2012</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Sep-2012</td><td class="ind_calc_date_column">15-Oct-2012</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">15-Oct-2012</td><td class="ind_calc_date_column">14-Nov-2012</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Nov-2012</td><td class="ind_calc_date_column">14-Dec-2012</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Dec-2012</td><td class="ind_calc_date_column">14-Jan-2013</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Jan-2013</td><td class="ind_calc_date_column">14-Feb-2013</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Feb-2013</td><td class="ind_calc_date_column">14-Mar-2013</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Mar-2013</td><td class="ind_calc_date_column">15-Apr-2013</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">15-Apr-2013</td><td class="ind_calc_date_column">14-May-2013</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-May-2013</td><td class="ind_calc_date_column">14-Jun-2013</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Jun-2013</td><td class="ind_calc_date_column">15-Jul-2013</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">15-Jul-2013</td><td class="ind_calc_date_column">14-Aug-2013</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Aug-2013</td><td class="ind_calc_date_column">16-Sep-2013</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">16-Sep-2013</td><td class="ind_calc_date_column">15-Oct-2013</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">15-Oct-2013</td><td class="ind_calc_date_column">14-Nov-2013</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Nov-2013</td><td class="ind_calc_date_column">16-Dec-2013</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">16-Dec-2013</td><td class="ind_calc_date_column">14-Jan-2014</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Jan-2014</td><td class="ind_calc_date_column">14-Feb-2014</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Feb-2014</td><td class="ind_calc_date_column">14-Mar-2014</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Mar-2014</td><td class="ind_calc_date_column">14-Apr-2014</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Apr-2014</td><td class="ind_calc_date_column">14-May-2014</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-May-2014</td><td class="ind_calc_date_column">16-Jun-2014</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">16-Jun-2014</td><td class="ind_calc_date_column">14-Jul-2014</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Jul-2014</td><td class="ind_calc_date_column">14-Aug-2014</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Aug-2014</td><td class="ind_calc_date_column">15-Sep-2014</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">15-Sep-2014</td><td class="ind_calc_date_column">14-Oct-2014</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Oct-2014</td><td class="ind_calc_date_column">14-Nov-2014</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Nov-2014</td><td class="ind_calc_date_column">15-Dec-2014</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">15-Dec-2014</td><td class="ind_calc_date_column">14-Jan-2015</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Jan-2015</td><td class="ind_calc_date_column">17-Feb-2015</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">17-Feb-2015</td><td class="ind_calc_date_column">16-Mar-2015</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">16-Mar-2015</td><td class="ind_calc_date_column">14-Apr-2015</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Apr-2015</td><td class="ind_calc_date_column">14-May-2015</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-May-2015</td><td class="ind_calc_date_column">15-Jun-2015</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">15-Jun-2015</td><td class="ind_calc_date_column">14-Jul-2015</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Jul-2015</td><td class="ind_calc_date_column">14-Aug-2015</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Aug-2015</td><td class="ind_calc_date_column">14-Sep-2015</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Sep-2015</td><td class="ind_calc_date_column">14-Oct-2015</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Oct-2015</td><td class="ind_calc_date_column">16-Nov-2015</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">16-Nov-2015</td><td class="ind_calc_date_column">14-Dec-2015</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Dec-2015</td><td class="ind_calc_date_column">14-Jan-2016</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Jan-2016</td><td class="ind_calc_date_column">16-Feb-2016</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">16-Feb-2016</td><td class="ind_calc_date_column">14-Mar-2016</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr><tr class="ind_calc_preview_schedule_row amortizationschedulepreviewrow"><td class="ind_calc_date_column">14-Mar-2016</td><td class="ind_calc_date_column">14-Apr-2016</td><td class="ind_calc_curr_column">$10,000,000.00</td><td class="ind_calc_curr_column">$0.00</td></tr></tbody>
所以这实际上是我在c#中拥有的字符串,我想替换 body
与 table
,所以我正在尝试这样做:
So this is actually a string I have in c#, and I want to replace tbody
with table
, so I'm trying to do it like this:
_viewPath.Replace("tbody", "table");
但是它不起作用。为什么?
But it isn't working. Why?
推荐答案
您应该这样做:
_viewPath = _viewPath.Replace("tbody", "table");
这篇关于替换字符串C#中的值不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!