2011-04-14 91 views
1
  <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#中,我想用table更換tbody,所以我試圖做這樣的:替換字符串C#值不工作

_viewPath.Replace("tbody", "table"); 

但它不工作。爲什麼?

+0

你能展示更多代碼嗎?例如,你是否將Replace返回的字符串賦值給一個字符串變量? – mbeckish 2011-04-14 20:38:44

+0

[c#替換字符串函數不返回預期結果]的可能重複(http://stackoverflow.com/questions/5076812/c-replace-string-function-not-returning-expected-results) – 2011-04-14 20:42:44

回答

7

你應該這樣做:

_viewPath = _viewPath.Replace("tbody", "table"); 
3

因爲string.Replace沒有修改字符串,它返回一個新

_viewPath = _viewPath.Replace("tbody", "table"); 

會做的伎倆。

1

字符串是不可變的。這意味着你不要修改它們.Replace返回一個NEW字符串。試試這個:

_viewPath = _viewpath.Replace("tbody", "table"); 
0

您應該保存替換的結果:_viewPath = _viewPath.Replace("tbody", "table");

0

Replace功能實際上,一點回報結果。你必須這樣做:

var Result = _viewPath.Replace("tbody", "table"); 

其中結果包含轉換的結果。