相同视图mvc 4.0中的两种不同的动作方法(创建,细节)

编程入门 行业动态 更新时间:2024-10-13 16:20:03
本文介绍了相同视图mvc 4.0中的两种不同的动作方法(创建,细节)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在mvc 4.0 我的要求是 在创建视图中,插入时存储数据库的数据,它将在同一个创建视图中并排显示为gridview格式,并排 在一个页面(视图)中,一边是文本框,按钮控件另一边是gridview控制 任何人都可以帮助我...

解决方案

你好, 如您所希望的gridview格式记录所示。然后查看此网址。 在带有数据库的ASP.NET MVC中使用JavaScript进行双向绑定 [ ^ ]

我想你想要详细信息以及在同一页面中创建表单。 为此,您可以使用局部视图。在您的局部视图中,只需复制您创建页面的所有内容并将其粘贴到那里。 然后在页面中渲染您想要查看详细信息的局部视图

Hi, In mvc 4.0 My requirement is In Create View, when I insert data to store the database and it will be shown as gridview format in same create view, side by side In one page(view) one side is textbox,button controls and next side is gridview control can any one help me...

解决方案

Hi , as you want gridview format records show . then View this url. Two Way Binding using JavaScript in ASP.NET MVC With Database[^]

I think you want details as well as create form in same page. To achieve this you can use partial view. And in your partial view just copy all the contents of your create page and paste it there. Then render the partial view in your page where you want to see the details.

更多推荐

相同视图mvc 4.0中的两种不同的动作方法(创建,细节)

本文发布于:2023-11-30 16:03:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1650617.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:两种   视图   细节   动作   方法

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!