【发布时间】:2019-01-13 14:16:00
【问题描述】:
第一次使用 StackOverflow。 我有一个包含不同数据的表,我想在两分钟后禁用 actionlink
<table class="table">
<tr class="btn-danger">
<th>
@Html.DisplayNameFor(model => model._art.libelle)
</th>
<th>
Image
</th>
<th>
@Html.DisplayNameFor(model => model._art.prix_initial)
</th>
<th>
Prix Courant
</th>
<th></th>
</tr>
@foreach (var item in Model)
{
<tr class="btn-primary">
<td>
@Html.DisplayFor(modelItem => item._art.libelle)
</td>
<td>
<img src="@Url.Content(item._art.img)" width="300" height="300"/>
</td>
<td>
@Html.DisplayFor(modelItem => item._art.prix_initial)
</td>
<td>
@{ var prix_calcule = item.valeur_courante
* 0.1 * item._art.prix_initial
+ item._art.prix_initial;
}
@prix_calcule
</td>
<td id="test">
<h1>@Html.ActionLink("Encherir", "Encherir", new { id_article = item._art.id }, new { @class = "btn btn-success" })</h1>
</td>
</tr>
}
</table>
我想在两分钟后禁用 actionLink “encherir”。 我已经尝试过 javascript,但不幸的是,它只会禁用表中的第一行。
【问题讨论】:
标签: javascript c# asp.net razor