回发退出工作 [英] Postback quit working

查看:53
本文介绍了回发退出工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近遇到了一个让我感到困惑的奇怪问题。


我在登台服务器上有很多网络应用程序突然停止

退出用户单击提交按钮时回发。完全相同的代码

在生产服务器上正常工作。


在我试图追踪这个问题时,我已将其简化为此。任何时候

,我添加了一个必需的字段验证器控件(可能还有其他验证

控件 - 我只测试了所需的字段验证器)到一个表单,<当用户单击提交按钮时,将不再提交
表单。我用
创建了一个非常简单的Web表单来测试我的理论。该表单包含一个

标签,一个文本框,一个按钮和一个必需的字段验证器,其

控件用于验证我设置为文本框的属性。

按钮后面的代码只是将标签的文本属性设置为文本框的文本属性

,并仅在页面成功验证时清除文本框。 br />

如果我将文本框留空并单击按钮,则必填字段

验证器完成其工作;但是,如果我在文本框中输入文本并单击

提交按钮,则不会触发事件 - 甚至不会发生page_load事件。如果我

删除所需的字段验证器,一切正常。文本框文本

出现在标签中,文本框清除。


我试过用那个<替换登台服务器的aspnet_client文件夹来自其中一个生产服务器的
,但这样做没有区别。

此外,登台服务器上的NTFS权限与

上的NTFS权限相匹配生产服务器。我很难过,而且我不知道还有什么要检查。


我会真诚地感谢有人提供的帮助。

I recently encountered an odd problem that has me rather baffled.

I have a number of web applications on a staging server that have suddenly
quit posting back when the user clicks a submit button. The exact same code
works correctly on the production servers.

In my attempts to trace this problem, I''ve simplified it to this. Any time
that I add a required field validator control (and perhaps other validation
controls - I''ve tested only the required field validator) to a form, the
form will no longer submit when the user clicks the submit button. I
created a very simple web form to test my theory. The form contains one
lable, one textbox, one button, and one required field validator whose
control to validate property I set to the textbox. The code behind the
button simply sets the label''s text property to the textbox''s text property
and clears the textbox only if the page successfully validates.

If I leave the textbox empty and click the button, the required field
validator does its job; however, if I enter text into the textbox and click
the submit button, no events fire - not even the page_load event. If I
remove the required field validator, everything works fine. The textbox text
appears in the label, and the textbox clears.

I''ve tried replacing the staging server''s aspnet_client folder with that
from one of the production servers, but doing so made no difference.
Additionallyu, the NTFS permissions on the staging server match those on the
production servers. I''m stumped, and I have no idea what else to check.

I would sincerely apprectiate any assistance someone could offer.

推荐答案

许多回发问题都归咎于.NET 1.1 SP1。


你最近升级了吗?这可能是问题所在。显然,这是框架用来创建回发

功能的js文件的问题。由于它具有相同的名称,旧的缓存在

浏览器或其他地方,而新的浏览器不会被下载。那当然是

导致问题。


希望这会有所帮助。


Frank Mamone


" Craig" <我们** @ domain.com>在消息中写道

news:82 ******************* @ tornado.tampabay.rr.com ...
Many postback problems have been attributed to .NET 1.1 SP1.

Have you upgraded lately? That could be the problem. Apparently, it''s a
problem with the js file the framework uses to create the postback
functionality. Since it has the same name , the old one is cached on the
browser or elsewhere and the new one doesn''t get downloaded. That of course
causes problems.

Hope this helps.

Frank Mamone

"Craig" <us**@domain.com> wrote in message
news:82*******************@tornado.tampabay.rr.com ...
我最近遇到了一个让我感到困惑的奇怪问题。

我在登台服务器上有许多Web应用程序,当用户点击提交按钮时,它突然退回。完全相同的
代码在生产服务器上正常工作。

在我试图追踪这个问题时,我已将其简化为此。我添加了一个必需的字段验证器控件(可能还有其他
验证控件 - 我只测试了所需的字段验证器)到表单的任何
时间,
表单将不再提交当用户单击提交按钮时。我创建了一个非常简单的Web表单来测试我的理论。该表单包含一个标签,一个文本框,一个按钮和一个必需的字段验证器,其
控件用于验证我设置为文本框的属性。
按钮后面的代码只是将标签的文本属性设置为文本框的文本
属性,并仅在页面成功验证时清除文本框。

如果我将文本框留空并单击按钮,必填字段
验证器完成其工作;但是,如果我在文本框中输入文本并且
单击提交按钮,则不会触发任何事件 - 甚至不是page_load事件。如果我
删除所需的字段验证器,一切正常。文本框
文本显示在标签中,文本框清除。

我已经尝试用其中一个生产替换暂存服务器的aspnet_client文件夹
服务器,但这样做没有区别。
此外,登台服务器上的NTFS权限与生产服务器上的
上的权限相匹配。我很难过,而且我不知道还有什么要检查。

我真诚地感谢有人提供的帮助。
I recently encountered an odd problem that has me rather baffled.

I have a number of web applications on a staging server that have suddenly
quit posting back when the user clicks a submit button. The exact same code works correctly on the production servers.

In my attempts to trace this problem, I''ve simplified it to this. Any time that I add a required field validator control (and perhaps other validation controls - I''ve tested only the required field validator) to a form, the
form will no longer submit when the user clicks the submit button. I
created a very simple web form to test my theory. The form contains one
lable, one textbox, one button, and one required field validator whose
control to validate property I set to the textbox. The code behind the
button simply sets the label''s text property to the textbox''s text property and clears the textbox only if the page successfully validates.

If I leave the textbox empty and click the button, the required field
validator does its job; however, if I enter text into the textbox and click the submit button, no events fire - not even the page_load event. If I
remove the required field validator, everything works fine. The textbox text appears in the label, and the textbox clears.

I''ve tried replacing the staging server''s aspnet_client folder with that
from one of the production servers, but doing so made no difference.
Additionallyu, the NTFS permissions on the staging server match those on the production servers. I''m stumped, and I have no idea what else to check.

I would sincerely apprectiate any assistance someone could offer.



好吧,我从星期五开始没有升级,而且我很确定星期五表格

正常工作。此外,我在

之前升级到1.1 sp1,开发相关表格。但是,在你的帖子发布之后,我将b $ b清除了我的缓存,但我仍然遇到了同样的失败。我也是因为
发现了另一个怪异。这些表格几乎可以在每个

其他可用的浏览器中正常工作*除了* IE。


还有其他想法吗?


Craig


" Frank Mamone" < FR ********** @ canada.com>在消息中写道

news:u7 ************* @ TK2MSFTNGP12.phx.gbl ...
Well, I haven''t upgraded since Friday, and I''m fairly certain that the forms
worked correctly on Friday. Further, I upgraded to 1.1 sp1 prior to
developing the forms in question. However, subsequent to your post, I
cleared my cache, and I still encounter the same failure. I''ve also since
discovered another oddity. The forms work correctly in just about every
other available browser *except* IE.

Any other ideas?

Craig

"Frank Mamone" <fr**********@canada.com> wrote in message
news:u7*************@TK2MSFTNGP12.phx.gbl...
许多回发问题已被归因到.NET 1.1 SP1。

你最近升级了吗?这可能是问题所在。显然,这是框架用来创建回发功能的js文件的问题。由于它具有相同的名称,旧的缓存在
浏览器或其他地方,新的不会被下载。
课程导致问题。

希望这会有所帮助。

Frank Mamone

Craig <我们** @ domain.com>在消息中写道
新闻:82 ******************* @ tornado.tampabay.rr.com ...
Many postback problems have been attributed to .NET 1.1 SP1.

Have you upgraded lately? That could be the problem. Apparently, it''s a
problem with the js file the framework uses to create the postback
functionality. Since it has the same name , the old one is cached on the
browser or elsewhere and the new one doesn''t get downloaded. That of course causes problems.

Hope this helps.

Frank Mamone

"Craig" <us**@domain.com> wrote in message
news:82*******************@tornado.tampabay.rr.com ...
我最近我遇到了一个让我感到困惑的奇怪问题。

我在登台服务器上有许多Web应用程序,当用户点击提交按钮时,
突然退回。完全相同的
I recently encountered an odd problem that has me rather baffled.

I have a number of web applications on a staging server that have suddenly quit posting back when the user clicks a submit button. The exact same


代码

在生产服务器上正常工作。

在我试图追踪这个问题时,我把它简化为这个。任何
works correctly on the production servers.

In my attempts to trace this problem, I''ve simplified it to this. Any


时间

我添加了一个必需的字段验证器控件(可能还有其他
that I add a required field validator control (and perhaps other


验证

控件 - 我只测试了所需的字段验证器到表单,当用户单击提交按钮时,
表单将不再提交。我创建了一个非常简单的Web表单来测试我的理论。该表单包含一个标签,一个文本框,一个按钮和一个必需的字段验证器,其
控件用于验证我设置为文本框的属性。
按钮后面的代码只是将标签的文本属性设置为文本框的文本
controls - I''ve tested only the required field validator) to a form, the
form will no longer submit when the user clicks the submit button. I
created a very simple web form to test my theory. The form contains one
lable, one textbox, one button, and one required field validator whose
control to validate property I set to the textbox. The code behind the
button simply sets the label''s text property to the textbox''s text


属性

并仅在页面中清除文本框成功验证。

如果我将文本框留空并单击按钮,则必填字段
验证器完成其工作;但是,如果我在文本框中输入文本并
and clears the textbox only if the page successfully validates.

If I leave the textbox empty and click the button, the required field
validator does its job; however, if I enter text into the textbox and


单击

提交按钮,则不会触发事件 - 甚至不会发生page_load事件。如果我
删除所需的字段验证器,一切正常。文本框
the submit button, no events fire - not even the page_load event. If I
remove the required field validator, everything works fine. The textbox


text


text

出现在标签中,文本框清除。

我已经尝试更换登台服务器的aspnet_client来自其中一个生产服务器的文件夹,但这样做没有区别。
此外,登台服务器上的NTFS权限与
appears in the label, and the textbox clears.

I''ve tried replacing the staging server''s aspnet_client folder with that
from one of the production servers, but doing so made no difference.
Additionallyu, the NTFS permissions on the staging server match those on

上的那些权限相匹配


the

生产服务器。我很难过,而且我不知道还有什么要检查。

我真诚地感谢有人提供的帮助。
production servers. I''m stumped, and I have no idea what else to check.

I would sincerely apprectiate any assistance someone could offer.




不是建议,而是另一条评论。我有完全相同的

问题。从星期五开始,这个问题已经出现了很多,我们似乎有很多人在这几个董事会中出现了b $ b。我在另一个板上看到

错误文件是webuivalidation.js。我不知道是否正在提供

错误文件,或者无论如何都要修复

它,但我很想知道!

谢谢,

科视Christie

Not a suggestion, but another comment. I''m having the
exact same problem. There seem to be a number of us
across a few boards with this problem that has arisen
since Friday. I have seen on another board that the
faulty file is webuivalidation.js. I do not know if the
wrong file is being served or if there is anyway to fix
it, but I would love to know!
Thanks,
Christie

-----原帖-----
好吧,我没有''自星期五以来升级,我相当于
肯定周五表格正确。此外,在开发相关表格之前,我升级到1.1
sp1。但是,在您的帖子
之后,Icleared我的缓存,我仍然遇到相同的
失败。我也发现了另一个奇怪的事。这些表格在
中正常工作,除了* IE之外,其他任何浏览器都可以正常工作。

任何其他想法?

Craig

" Frank Mamone < FR ********** @ canada.com>在消息中写道
新闻:u7 ************* @ TK2MSFTNGP12.phx.gbl ...
-----Original Message-----
Well, I haven''t upgraded since Friday, and I''m fairly certain that the formsworked correctly on Friday. Further, I upgraded to 1.1 sp1 prior todeveloping the forms in question. However, subsequent to your post, Icleared my cache, and I still encounter the same failure. I''ve also sincediscovered another oddity. The forms work correctly in just about everyother available browser *except* IE.

Any other ideas?

Craig

"Frank Mamone" <fr**********@canada.com> wrote in message
news:u7*************@TK2MSFTNGP12.phx.gbl...
许多回发问题都归因于.NET 1.1
SP1。
Many postback problems have been attributed to .NET 1.1 SP1.

你最近升级了吗?这可能是问题所在。
显然,框架用于创建
回发功能的js文件存在问题。由于它具有相同的名称,旧的
将缓存在浏览器或其他地方,而新的
不会下载
。那个

Have you upgraded lately? That could be the problem. Apparently, it''s a problem with the js file the framework uses to create the postback functionality. Since it has the same name , the old one is cached on the browser or elsewhere and the new one doesn''t get downloaded. That of
course
会导致问题。

希望这会有所帮助。

Frank Mamone

克雷格 <我们** @ domain.com>在消息中写道
新闻:82 ******************* @ tornado.tampabay.rr.com ...
causes problems.

Hope this helps.

Frank Mamone

"Craig" <us**@domain.com> wrote in message
news:82*******************@tornado.tampabay.rr.com ...
>我最近遇到了一个奇怪的问题,让我对b $ b感到困惑。 >
>我在暂存
服务器上有许多web应用程序,其中
> I recently encountered an odd problem that has me rather baffled. >
> I have a number of web applications on a staging server that have
突然>当用户单击提交
suddenly > quit posting back when the user clicks a submit



按钮时退出回发。完全相同的代码


button. The exact same code

>在生产服务器上正常工作。
>
>在我试图追踪这个问题时,我已经简化了
> works correctly on the production servers.
>
> In my attempts to trace this problem, I''ve simplified


。任何时候

it to this. Any time

>我添加了一个必需的字段验证器控件(和
> that I add a required field validator control (and


或许其他验证

perhaps other validation

>控件 - 我只测试了必需的字段
> controls - I''ve tested only the required field


验证者)到表格,>当用户点击
提交按钮时,表单将不再提交。我>创建了一个非常简单的Web表单来测试我的理论。
表单包含一个>标签,一个文本框,一个按钮和一个必需的
字段验证器,其>控制以验证我设置为文本框的属性。
>背后的代码按钮只是将标签的文本属性设置为
文本框的文本属性

validator) to a form, the > form will no longer submit when the user clicks the submit button. I > created a very simple web form to test my theory. The form contains one > lable, one textbox, one button, and one required field validator whose > control to validate property I set to the textbox. The code behind the > button simply sets the label''s text property to the textbox''s text property

>仅当页面成功


验证时才清除文本框。 >
>如果我将文本框留空并单击按钮,则
必填字段>验证者完成其工作;但是,如果我在文本框中输入文本
并单击

validates. >
> If I leave the textbox empty and click the button, the required field > validator does its job; however, if I enter text into the textbox and click

>提交按钮,没有事件触发 - 甚至没有
> the submit button, no events fire - not even the


page_load事件。如果我>删除所需的字段验证器,一切正常
罚款。文本框文本

page_load event. If I > remove the required field validator, everything works fine. The textbox text

>出现在标签中,文本框会清除。
>
>我试过用>替换登台服务器的
> appears in the label, and the textbox clears.
>
> I''ve tried replacing the staging server''s


aspnet_client文件夹。从其中一个生产服务器,但这样做
没有区别。 >另外,登台
服务器上的NTFS权限与

aspnet_client folder with that > from one of the production servers, but doing so made no difference. > Additionallyu, the NTFS permissions on the staging server match those on the

>上的NTFS权限相匹配。生产服务器。我很难过,我不知道
> production servers. I''m stumped, and I have no idea



还有什么要检查的。 >
>我真诚地感谢有人提供的任何帮助。 >
>


what else to check. >
> I would sincerely apprectiate any assistance someone could offer. >
>





.



这篇关于回发退出工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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