要保存在父页面上的弹出框上的详细信息 [英] details on the popup box to be saved on the parent page

查看:57
本文介绍了要保存在父页面上的弹出框上的详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友

我是Mvc 3 Razor引擎的新手,我有一个问题.如果我有4个文本框,其中2个文本框用于名字和2个文本框用于名字.
名字:@ Model.reser_fname
姓:@ Model.reser_lname

Hi friends

I''m new to Mvc 3 Razor engine, i have a question. If i have to 4 text boxes having 2 textboxes for firstname and 2 textboxes for second name.
FirstName: @Model.reser_fname
LastName: @Model.reser_lname

(modifyname)
FirstName: @Model.reser_fname 
LastName: @Model.reser_lname
(modifyname)
// script for popup box when the modify link is clicked
<script type="text/javascript">
$(document).ready(function () {
$('#modify').click(function () {
$("#dialog:ui-dialog").dialog("destroy");
$("#dialog-box").dialog({
buttons: {
"save": function () {
},
Cancel: function () {
$(this).dialog("close");
}}
});
});
});
</script>
// div inside the popup box
<div id-="dialog-box">


编辑详细信息
名字:<输入类型=文本" id ="reser_fname"/>
姓氏:<输入type ="text" id ="reser_lname"/>
这是在确认页上,按照剃刀代码,我有名字和姓氏,现在,如果我想编辑名字和姓氏,请单击修改",然后出现一个弹出框,其中包含名字和姓氏.我输入详细信息,然后在弹出窗口中单击保存"按钮.因此,确认页面上的详细信息应该更改.我如何为该保存按钮编写代码,以更改我的确认页面上的详细信息.

任何人都可以帮忙..


Edit Details
FirstName : <input type="text" id="reser_fname" />
LastName : <input type="text" id="reser_lname" />
this is on a confirmation page, where as per razor code i have the first name and last name, now if i want to edit the first and last name,i click modify and i get a popup box, which has firstname and lastname. I enter i the details and click save button inside the popup. So the details on the confirmation page should change. how is that i can write a code for that save button where it changes the details on my confirmation page.

can anyone help..

推荐答案

(文档).ready(
(document).ready(function () {


(#modify' ).click(函数(){
('#modify').click(function () {


(" #dialog:ui-dialog").dialog( );
("#dialog:ui-dialog").dialog("destroy");


这篇关于要保存在父页面上的弹出框上的详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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