English 中文(简体)
如果观点的纽扣/无法控制,如何控制
原标题:How to tell the control if the button of the view is dis/enabled

我认为,我有这个 but子:

<input type="submit" value="Delete" disabled="disabled" id="btnDelete"  name="btnDelete" />

并且我有使这一方法成为可能的焦土方法。

这一观点。

如何检查 but子是否在控制器内被允许或致残?

I have this method:

public void MyMethod(FormCollection form)
{...}

但是,表格中含有有关纽芬兰的任何内容。

also, form["btnDelete"] is null.

最佳回答

Yes because input button can not hold any value and returning it is useless.

如果你想要在你的控制人员中具有这种归属价值,就会提供隐藏的投入,使纽芬兰的数值在页数上保持不变,并将在桶上改变。 删除点击事件。

问题回答

暂无回答




相关问题
Using jquery to get a partial view and updating the UI

I need to render a partial view (returned from the controller) to show some customer summary details. This will need to happen when the user clicks on a button. In the the mean time the user can ...

MVC 2 / MVC 3 / MVC 4

MVC 2 我们可以轻松地创造领域。 现在,我的问题涉及nes地区(地区内)。

Asp.Net MVC 2 - Changing the PropertyValueRequired string

Using a resx file in the App_GlobalResources directory, I ve been able to change the default message for the PropertyValueInvalid string of the model validators. But it doesn t work to translate the ...

ASP.NET MVC 3 - What features do you want to see? [closed]

I know a bunch of people that are really enjoying the improvements that ASP.NET MVC 2 made over the first release. I have just started to migrate our MVC 1 project over and so far areas has totally ...

热门标签