简体   繁体   English

命令名多个

[英]Commandname multiple

I've an ASP.NET form view with multiple forms. 我有一个包含多个表单的ASP.NET表单视图。 I want to use only a single button and get rid of the rest. 我只想使用一个按钮,然后删除其余的按钮。 I assume then I need to somehow call the command for multiple forms on the update, ie command name. 我认为那我需要以某种方式在更新中调用多种形式的命令,即命令名称。

  1. Is it possible to do this declaratively? 是否可以声明性地执行此操作?
  2. How would I do this programatically? 我将如何以编程方式执行此操作?

For #2, I can use Form.UpdateItem() command. 对于#2,我可以使用Form.UpdateItem()命令。 I'm still waiting for #1, if I can assign multiple command names to a button or anything like that. 如果我可以为一个按钮或类似的东西分配多个命令名称,我仍在等待#1。

Also if anyone show a different way to do this I will give credit for the answer. 另外,如果有人显示出不同的操作方法,我将为您提供答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM