MVC3 How to disable/enable ActionLink

前端 未结 5 1581
鱼传尺愫
鱼传尺愫 2020-12-10 03:04

I have if condition and I want to disable or enable my actionLink button.

How would I do it?

@Html.ActionLink(\"Delete\", \"Delete\", new { id = @Mode

5条回答
  •  我在风中等你
    2020-12-10 03:49

    Someone might find this useful, I once solved a similar problem by turning @Html.ActionLink into an input and then you make it work as a link using javascript:

    
    

提交回复
热议问题