如何在Firefox中使用我的ASP.Net 1.1应用程序使用Ajax和客户端验证器?

时间:2022-10-09 07:30:49

Ok, long story short - I've got an ASP.Net 1.1 website, which uses Validator controls and Ajax (ajax.dll, v5.7.22.2)... All of these elements of the site were chosen/implemented before I got here, and before anybody asks, no, it's not within our budget (timewise) to upgrade even to ASP.Net 2.0, let alone the latest and greatest of everything.

好吧,长话短说 - 我有一个ASP.Net 1.1网站,它使用Validator控件和Ajax(ajax.dll,v5.7.22.2)...网站的所有这些元素都是在我之前选择/实现的到了这里,并且在任何人问之前,不,我们的预算(时间上)不能升级到ASP.Net 2.0,更不用说最新和最好的一切了。

The site works fine in IE (of course), but in Firefox (or Chrome... Haven't tried Opera or Safari) I've found that ASP renders the site without any javascript code for the validators, nor does it render the site with any javascript code for the ajax methods that I call.

该网站在IE(当然)工作正常,但在Firefox(或Chrome ...没有尝试Opera或Safari)我发现ASP渲染网站没有任何验证器的JavaScript代码,也没有渲染网站上有我调用的ajax方法的任何javascript代码。

I've checked, and our web.config is setup to treat Firefox as an "uplevel" browser... And it does seem to be using the correct HtmlWriter (ie my pages on FFox are rendered with spans and divs). I've tried creating a PageClient alias using an IE7 user agent in the web.config, and forcing the page to use that PageClient. NOTHING seems to let it generate the Ajax and validator javascript. My research on the net seems to be pointing towards validators simply not ever able to work with ASP.Net 1.1 and Firefox... And I presume that whatever the validators do, the Ajax library is doing as well... But I'm really really really hoping there's a workaround for this. It'll be extremely embarrassing to have to tell the client in this day and age "Sorry, we don't support non-IE browsers with this release".

我已经检查了,我们的web.config设置为将Firefox视为“高级”浏览器......它似乎确实使用了正确的HtmlWriter(即我在FFox上的页面使用spans和div进行渲染)。我尝试在web.config中使用IE7用户代理创建一个PageClient别名,并强制页面使用该PageClient。 NOTHING似乎让它生成Ajax和验证器javascript。我对网络的研究似乎指向验证器根本无法使用ASP.Net 1.1和Firefox ......而且我认为无论验证器做什么,Ajax库都在做......但我是真的非常希望有一个解决方法。在这个时代必须告诉客户“非常尴尬”对不起,我们不支持此版本的非IE浏览器“。

1 个解决方案

#1


1  

Have a look at this article for a possible workaround

请查看本文以获取可能的解决方法

#1


1  

Have a look at this article for a possible workaround

请查看本文以获取可能的解决方法