如何在Jquery之前调用数据库操作? [英] How to call database operation before Jquery?

查看:53
本文介绍了如何在Jquery之前调用数据库操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表单,我希望从表单中保存数据,如果保存成功,则将它们重定向到另一个页面,并提示在此页面上打印其表单。我怎样才能实现这一目标?

I have a form in which i want to save the data from the form and if the save is successful then redirect them to another page and prompting to print their Form on this page. How can i achieve this?

推荐答案

使用普通的< form>提交给控制器动作。向控制器提交表单并从控制器操作执行重定向都是MVC的基本方面。我建议你阅读一本关于mvc或至少是在线教程的书,因为当你对基础知识有所了解时,那么如何做这些事情就变得清晰了。
Use a normal <form> submission to a controller action. Submitting forms to controllers and doing redirects from controller actions are all very basic aspects of MVC. I suggest you go through a book on mvc or at least on-line tutorials, as when you have an understanding of the basics then how to do these things becomes clear.


这篇关于如何在Jquery之前调用数据库操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆