简体   繁体   English

通过partialview在基于Tab的页面中发布数据

[英]Posting data in Tab based page by partialview

I have 3 tabs in my Page and I used JQuery UI for tabs. 我的页面中有3个标签,并且我使用JQuery UI来标签。

<div id="tabs" style="text-align:right;">
<ul>
    <li class="myTab">
    <a href="#tabs-1">Main Information</a></li>
    <li class="myTab"><a href=<%= Url.Action("GetPartialView","Contractors") %>                >Contractors</a></li>
    <li class="myTab"><a href="#tabs-3"> Consultants </a></li>
</ul>
<div id="tabs-1">

</div>
<div id="tabs-2">
</div>
<div id="tabs-3">
</div>

There is a "Save" button in each tab.The problem is that when for example button "Save" of contractors tab was clicked the page redirect to http://localhost:1347/xxxxx/GetPartialView and didn't fire any method.I want to save data and show user a message that shows data was saved completely.How can I do it? 每个选项卡中都有一个“保存”按钮。问题是,例如,单击了承包商选项卡的按钮“保存”时,页面重定向到http:// localhost:1347 / xxxxx / GetPartialView,并且没有触发任何方法。我想保存数据并向用户显示一条消息,表明数据已完全保存。该怎么办?

在调用该页面的任何操作之上,是否都具有[HttpPost]属性?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM