将精美的盒子数据放入文本框中 [英] Get fancy box data in to textbox
问题描述
抱歉英文不好 hi,sorry for bad english 这篇关于将精美的盒子数据放入文本框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
i我从CreateEvent.cshtml页面调用精美框,花式框有四个文本字段和保存按钮,当保存按钮点击时,我希望花哨的框文本字段数据显示在CreateEvent.cshtml页面的文本框中,并带有逗号分隔。我不希望我的CreateEvent.cshtml页面重新加载。
我喜欢的盒子代码:
< pre lang =HTML> < table >
< tr >
< td >
@ Html.LabelFor(m => m.Address1)
< / td >
< td >
@ Html.TextBoxFor(m => m.Address1 })
< / td >
< / tr >
< tr >
< td >
@ Html.LabelFor(m => m.Address2)
< / td >
< td >
@ Html.TextBoxFor(m => m.Address1})
< < span class =code-leadattribute> / td >
< / tr >
< tr >
< td >
@ Html.LabelFor(m => m。市)
< / td >
< td >
@ Html.TextBoxFor(m => m.City)
< / td >
< / tr >
< tr >
< td > @ Html.LabelFor(m => m.Zip)
< span class =code-keyword>< / td >
< td >
@ Html.TextBoxFor(m => m.Zip)
< / td >
< / tr >
< tr >
< td >
< input id = saveid type = 提交 value = 保存 / >
< / td >
< / tr >
< / table >
< b> my createEvent.cshtml page
< 表格 >
< tr >
< td >
@ Html.LabelFor(m => m.StreetAddress1)
< / td >
< td >
@ Html.TextBoxFor(m => m.StreetAddress1)
< a href =' ../ EventManagement / EventLocation' 类 =' 事件' > 添加新位置< / a >
< / td >
< / tr >
< / table >
单击添加新位置链接花式框打开时带有4个文本字段,在花式框后面关闭我希望数据显示在StreetAddress1文本框中没有页面重新加载,尝试使用此链接在ASP.NET MVC中打开弹出
http://yassershaikh.com/how -to-create-a-modal-popup-in-asp-net-mvc-3-using-jquery / [ ^ ]
希望这有帮助
i am calling fancy box from CreateEvent.cshtml page, fancy box having four text fields and save button,when save button clicks , i want fancy box text fields data to display in a textbox in CreateEvent.cshtml page with comma separation. i don't want my CreateEvent.cshtml page to reload.
my fancy box code:
<table>
<tr>
<td>
@Html.LabelFor(m => m.Address1)
</td>
<td>
@Html.TextBoxFor(m => m.Address1})
</td>
</tr>
<tr>
<td>
@Html.LabelFor(m => m.Address2)
</td>
<td>
@Html.TextBoxFor(m => m.Address1})
</td>
</tr>
<tr>
<td>
@Html.LabelFor(m => m.City)
</td>
<td>
@Html.TextBoxFor(m => m.City)
</td>
</tr>
<tr>
<td >@Html.LabelFor(m => m.Zip)
</td>
<td>
@Html.TextBoxFor(m => m.Zip)
</td>
</tr>
<tr>
<td>
<input id="saveid" type="submit" value="Save" />
</td>
</tr>
</table>
my createEvent.cshtml page
<table>
<tr>
<td>
@Html.LabelFor(m => m.StreetAddress1)
</td>
<td>
@Html.TextBoxFor(m => m.StreetAddress1)
<a href='../EventManagement/EventLocation' class='Event'>Add New Location</a>
</td>
</tr>
</table>
on clicking of Add New Location link fancy box opens with 4 text fields, after fancy box close i want that data displays in StreetAddress1 textbox witout page reload,Try this link for open pop up in ASP.NET MVC
http://yassershaikh.com/how-to-create-a-modal-popup-in-asp-net-mvc-3-using-jquery/[^]
Hope this helps