我有一張非常大的財務表,它將在網頁上的多個不同頁面上重複4次。使用C#重複HTML表格,同時填充不同的值
我不喜歡在頁面上覆製表格4次的想法。所以我想一次調用它,可能使用一個控件。然後填充表格四次,在.cs後端定義的加載設置值。 ?
a)可以這樣做嗎?
b)我已閱讀過有關中繼器,數據表格,網格的文章,請問任何人,我需要直接接受嗎?
<div id="finance-boxes" class="span3">
<table class="table">
<tr><th>36 month PCP</th></tr>
<tr><td colspan="2"><img src="/images/1" alt="Mitsubishi Mirage PCP" /></td></tr>
<tr><td class="title">On The Road Price <span>(inc. Vat)</span></td></tr>
<tr><td class="fig">£129.00</td></tr>
<tr><td class="title">Deposit</td></tr>
<tr><td class="fig">£2,514</td></tr>
<tr><td class="title">Monthly Payment</td></tr>
<tr><td class="fig">£129.00</td></tr>
<tr><td class="title">Representative APR</td></tr>
<tr><td class="fig">6.7%</td></tr>
<tr><td class="title">Duration of Agrement</td></tr>
<tr><td class="fig">36 months</td></tr>
<tr><td><a href="#financeDetail36" role="button" class="btn btn-danger" data-toggle="modal">Launch Finance Details</a></td></tr>
</table>
不知道我是否完全理解。你想基本上有一個HTML表格模板,你可以反覆調用數據填充? –
既然你提到Repeaters,DataTables和Grids,聽起來這是一個WebForms Asp.Net站點? –
Hi @RayAlex。對不起,waffling,是的,你是正確的 – wilsonlego