English 中文(简体)
在要求发射的战地防御器火力之后使用 Java本法吗?
原标题:Call a JavaScript method after the RequiredFieldValidator fires?

在形式要素被视为无效之后,是否有可能发射 Java本? 我的设想是:

ASPX网页上有2个表格。 用户必须填写双表。 用户在表2中点击了提交年份。 然而,在表格上有一个需要注意的必要领域。 我是否需要建立习惯估价人(无论是由海关监管者控制还是由基点估价人产生新的控制),以叫 Java印功能显示表1并显示错误在哪里?

最佳回答

不幸的是,在伙伴关系中控制了现场验证器。 该网络的网络版面并不十分容易。 在客户验证后,我不得不将CSS类投入领域改为一个无效的国家,我从未找到解决这一问题的良好办法。

我认为,你的最好时机可能是亲自验证客户。 我也审视了这一第三方产品,似乎完全运作,但我无法证明,我的案例是:

问题回答

您可以在对页标进行鉴定后,在单轴功能内,把任何舱位功能从你的服务器边代码上打上,你可以书写逻辑,强调在验证方面已经存在的领域:

if(!Page.IsValid)
    {

      Page.ClientScript.RegisterStartupScript(typeof(Page), "validate", "myjsfunction();", true);
    }
    else
    {
       // type code here
    }




相关问题
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!

热门标签