English 中文(简体)
Asp.net MVC3 验证活动
原标题:Asp.net MVC3 validation event call

我有一页的Asp.net MVC3项目。 该网页有3个小区,每个小区都有一些投入领域。 这些碎块通过制表导航进入,每块 d子里有下游子点,点击下游子用户,被打到下台。 表格中,有纽芬兰文,其中提供了所有干地的数据。

在该次点子点击上也进行了所有实地鉴定。 这些鉴定采用分类、鉴定和验证等模式。

既然这里的问题是客户想要从每批零件中进行所有验证,就应在下顿点点点击各自的四分点上显示,那么就不应允许用户进入下一个表格,直到他澄清所有验证。

My question here is how can I trigger validation event on next button click? The constraint here is Next button will not post data it just navigat es to next tab.

最佳回答

您可尝试在每张表格上劫持下台纽顿,并逐步验证表上的位置。 如果他们当中有人失败,他们就会停止流动。

    $( #tab1 ).click(function (e) {
      if (!$("#myform").validate().element("#specificField")){
        e.preventDefault();
      }
    });
问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签