我有2种形式,其中值必须从第二种形式回传到第一种形式,而无需刷新第一种形式,我该怎么做 [英] I have 2 forms from where value has to be postback from 2nd form to 1st form without refreshing 1st form how can i do this

查看:90
本文介绍了我有2种形式,其中值必须从第二种形式回传到第一种形式,而无需刷新第一种形式,我该怎么做的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上我想做的是
我在视图中有第一种形式,当单击提交"按钮时,它有一个文本框地址,它发布ajax请求并返回部分视图,从该部分视图中,我必须选择位置,然后将其值从部分视图回发到文本框地址第一种形式,而不刷新第一种形式.
任何意见建议

Actually what i want to do is
I have 1st form in view there is a textbox address when clicked on submit button it post the ajax request and return the partial view and from that partial view i have to select the location and hav to postback that value from partial view to textbox address of 1st form without refreshing the 1st form.
Any Suggestion

推荐答案

您的第二种形式应该是灯箱,那么它就是第一种形式的一部分,您可以使用javascript和jquery来控制所有这些形式.现在无论如何,这就是大多数网站的工作方式,没有弹出窗口被阻止,而且看起来更漂亮.
Your second form should be a lightbox, then it''s part of the first form and you can control all of this using javascript and jquery. That is how most sites work now anyhow, there''s no popup to be blocked and it looks prettier.


这篇关于我有2种形式,其中值必须从第二种形式回传到第一种形式,而无需刷新第一种形式,我该怎么做的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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