English 中文(简体)
三、无形式或麻省的行动
原标题:Triggering [HttpPost]ActionResult without a form or ajax

我有一个模式窗口(从“public ActionResult ViewItems”中得出的观点),在点击时,向称为“HttpPost”的公众行动提交一份空表。

It then deletes all the items displayed. I dont need to post any data, as it just deletes all, but at the same time i dont want to have this on a HttpGet method.

因此,可以删除表格,并且仍然 j忙启动这一行动?

I could do it with ajax but would rather not.

Thanks,

Kohan

最佳回答

它要么是麻省,要么是形式。 这是你们唯一的选择。 如果你不使用麻风气,你就需要有职位的形式。

为什么没有在MVC样本中采用删除的模式? 你获得确认,然后获得另一个职位。 你的职位应该从形式上来,而且这一形式也应该有反感。

问题回答

暂无回答




相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签