ASP.net MVC 3 Ajax.beginform更新和客户端验证问题 [英] ASP.net MVC 3 Ajax.beginform update and Client Side validation Problem

查看:98
本文介绍了ASP.net MVC 3 Ajax.beginform更新和客户端验证问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更新使用ajax.beginform的partialview.通常,它是第一次在客户端进行验证,但是当我使用外部按钮事件刷新部分视图innerHTML时,就不再需要在按钮提交上进行客户端验证.

在谷歌浏览器中可以正常使用,但在IE 8、9或Mozilla中不能使用.

请在下面找到下载我创建的示例项目的链接.



下载项目

I am trying to update the partialview in which i used ajax.beginform. normally, first time it validate on client side but when i refresh the partial view innerHTML using outside button event, it is no more doing clientside validation on button submit.

It is working fine in google chrome but it is not working in IE 8, 9 or Mozilla.

Please find below link to download the sample project that i have created.



Download Project

推荐答案

您好达摩什,

您在此处提供的代码可以正常工作.
我已经在所有提到的三种浏览器中进行了尝试,其中提到的是谷歌浏览器,IE 9和Mozilla.每次验证并运行良好.
Hello Dharmesh,

The code u have provide here is working fine.
I have tried in all of three browser which u mentioned those are google chrome, IE 9 and Mozilla. Every time it validates and working nice.


这篇关于ASP.net MVC 3 Ajax.beginform更新和客户端验证问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆