简体   繁体   中英

Commandname multiple

I've an ASP.NET form view with multiple forms. 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. I'm still waiting for #1, if I can assign multiple command names to a button or anything like that.

Also if anyone show a different way to do this I will give credit for the answer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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