且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在mvc 4 razor中点击按钮获取动态文本框值

更新时间:2023-01-24 18:18:10

您的表格需求提交按钮以及与表单本身相关联的操作(帖子)。

一旦点击提交按钮,将调用相应控制器中的操作方法,并将值传递给它。 />


完成实施添加新产品(第2部分 - 第一种方法)这里 [ ^ ]。
Your form needs a submit button and also an action (post) associated to the form itself.
Once you hit the submit button, action method in the corresponding controller will be called and values will be passed to it.

Go through "Implementing Add New Product (Part 2 - First Approach)" here[^].