ASP.Net表单没有发布! [英] ASP.Net form not posting!

查看:75
本文介绍了ASP.Net表单没有发布!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究这个问题,所以任何帮助都会非常感谢




我有一个带有表单标签的页面。表单标签内部是一个面板,

包含一个用户控件。表单标签不在用户

控件内。在该用户控件内部是一些面板,其中包含应用程序的不同步骤(用于应用于某些内容)。当我转到步骤1并提交时,asp:验证器会捕获错误并且

表单不会发布。到目前为止,这是我所期待的。一旦我纠正错误,验证消息就会消失,但表格仍然会发布

不发布。


这是什么是奇怪的。这是在Windows XP专业版上开发的,在那里完美无缺地工作。我还在Windows

2000服务器上测试了完全相同的代码,它也可以在那里完美运行。一旦我将这个上传到我的生产Windows 2003服务器,就会产生上面描述的行为

。我心想,这可能是验证

文件问题,但我使用aspnet_client \ system_web \1_1_4322文件

放在我的应用程序的根目录中。 br />

这是在一个网络主机,而不是我自己的Windows 2003服务器,所以我有点

限制我在该服务器上可以看到或做什么。


此时有人有任何想法吗?任何帮助都会很棒!

谢谢,

Ian Suttle

解决方案

Ian:


您是否从Win2003计算机上的浏览器中访问该应用程序?

Win2003中的强化安全模式可防止javascript执行

默认。我不确定你是否真的在服务器上,因为

它是托管的。


-

Scott
http://www.OdeToCode.com/blogs/scott/


2004年11月9日12:21:53 -0800, Ia********@gmail.com 写道:

我一直在研究这个问题,所以任何帮助都是
非常感谢。

我有一个带有表单标签的页面。表单标签内部是一个包含用户控件的面板。表单标签不在用户
控件内。在该用户控件内部是一些面板,其中包含应用程序的不同步骤(用于应用于某些内容)。当我转到第1步并提交时,asp:验证器会捕获错误并且
表单不会发布。到目前为止,这是我所期待的。一旦我纠正了错误,验证信息就会消失,但表格仍然没有发布。

这就是奇怪的。这是在Windows XP专业版上开发的,并且在那里完美无缺地工作。我还在Windows
2000服务器上测试了完全相同的代码,它也可以在那里完美运行。一旦我将这个上传到我的生产Windows 2003服务器,它就会产生我上面描述的行为。我心里想,这可能是验证
文件问题,但我使用的aspnet_client \ system_web \ _1_1_4322文件放在我的应用程序的根目录中。

这个是在一个网络主机,而不是我自己的Windows 2003服务器,所以我有点限制我在该服务器上可以看到或做什么。

有人在这一点上有任何想法?任何帮助都会很棒!
谢谢,
Ian Suttle




Scott,

感谢您的回复。浏览时我不在服务器上。我在家里或工作时从本地机器浏览


谢谢,

Ian
http://www.IanSuttle.com


< blockquote>你确定表格没有发布吗?是什么让你这么认为?


你说你有带有表格标签的页面。这听起来很可疑,就像你在页面中有一个嵌套表单一样,因为ASP.Net页面几乎总是一个

WebForm。如果您已将表单标记插入到WebForm中,则很可能会将嵌套表单设为

。嵌套表格不是一个好主意,并且通常(取决于浏览器上的
)会以多种方式行为不端。


不发布的表单不是服务器端问题,因为表单是客户端浏览器中驻留在客户端计算机上的HTML

文档。表格发布后(发送请求到服务器),只有

服务器才会进入播放状态。因此,如果表单未发布,您的客户端HTML(例如嵌套表单标签)很可能会出现问题。


如果你发布一个URL,我们可以查看客户端的HTML。


-

HTH,

Kevin Spencer

..Net开发人员

微软MVP

跟随者既不是b $ b也不是贷款人。


< Ia ******** @ gmail.com>在消息中写道

news:11 ********************** @ c13g2000cwb.googlegr oups.com ...

我一直在研究这个问题,所以任何帮助都会非常感激。

我有一个带有表单标签的页面。表单标签内部是一个包含用户控件的面板。表单标签不在用户
控件内。在该用户控件内部是一些面板,其中包含应用程序的不同步骤(用于应用于某些内容)。当我转到第1步并提交时,asp:验证器会捕获错误并且
表单不会发布。到目前为止,这是我所期待的。一旦我纠正了错误,验证信息就会消失,但表格仍然没有发布。

这就是奇怪的。这是在Windows XP专业版上开发的,并且在那里完美无缺地工作。我还在Windows
2000服务器上测试了完全相同的代码,它也可以在那里完美运行。一旦我将这个上传到我的生产Windows 2003服务器,它就会产生我上面描述的行为。我心里想,这可能是验证
文件问题,但我使用的aspnet_client \ system_web \ _1_1_4322文件放在我的应用程序的根目录中。

这个是在一个网络主机,而不是我自己的Windows 2003服务器,所以我有点限制我在该服务器上可以看到或做什么。

有人在这一点上有任何想法?任何帮助都会很棒!
谢谢,Ian Suttle



I am have been researching this issue to no end, so any help would be
very much appreciated.

I have a page with form tags. Inside of the form tags is a panel that
contains a user control. The form tags are NOT inside of the user
control. Inside that user control are a few panels that contains
different steps of an application (for applying to something). When I
go to step 1 and submit, the asp:validators catch the errors and the
form doesn''t post. So far this is what I would expect. Once I correct
the errors, the validation messages go away, but the form will still
not post.

Here is what is weird. This was developed on Windows XP Pro, and works
flawlessly there. I have also tested the exact same code on a Windows
2000 server and it works perfectly there as well. As soon as I upload
this to my production Windows 2003 server it produces the behavior that
I described above. I thought to myself that this may be validation
file issues, but I am using the aspnet_client\system_web\1_1_4322 files
placed in the root of my application.

This is at a web host, not my own windows 2003 server, so I am somewhat
limited as to what I can see or do on that server.

Does anyone have ANY ideas at this point? Any help would be great!
Thanks,
Ian Suttle

解决方案

Ian:

Are you hitting the application from a browser on the Win2003 machine?
The hardened security mode in Win2003 prevents javascript execution by
default. I wasn''t sure if you were actually on the server or not since
it is hosted.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 9 Nov 2004 12:21:53 -0800, Ia********@gmail.com wrote:

I am have been researching this issue to no end, so any help would be
very much appreciated.

I have a page with form tags. Inside of the form tags is a panel that
contains a user control. The form tags are NOT inside of the user
control. Inside that user control are a few panels that contains
different steps of an application (for applying to something). When I
go to step 1 and submit, the asp:validators catch the errors and the
form doesn''t post. So far this is what I would expect. Once I correct
the errors, the validation messages go away, but the form will still
not post.

Here is what is weird. This was developed on Windows XP Pro, and works
flawlessly there. I have also tested the exact same code on a Windows
2000 server and it works perfectly there as well. As soon as I upload
this to my production Windows 2003 server it produces the behavior that
I described above. I thought to myself that this may be validation
file issues, but I am using the aspnet_client\system_web\1_1_4322 files
placed in the root of my application.

This is at a web host, not my own windows 2003 server, so I am somewhat
limited as to what I can see or do on that server.

Does anyone have ANY ideas at this point? Any help would be great!
Thanks,
Ian Suttle




Scott,

Thanks for the reply. I am not on the server when browsing. I am
browsing from a local machine at home or at work.
Thanks,
Ian
http://www.IanSuttle.com


Are you sure that the form is not posting? What makes you think so?

You say that you have "a page with form tags." This sounds suspiciously like
you have a nested form in your page, as an ASP.Net Page is almost always a
WebForm. If you have inserted form tags into a WebForm, you most likely have
a nested form. Nested forms are not a good idea, and generally (depending
upon the browser) misbehave in any number of ways.

A form not posting is not a server-side issue, as the form is an HTML
document that resides on the client machine, in the client browser. Only
once the form has posted (sent a Request to the server) does the server come
into play. Therefore, if the form is not posting, you most likely have a
problem with your client-side HTML (such as nested form tags).

If you post a URL, we can look at the client-side HTML.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

<Ia********@gmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...

I am have been researching this issue to no end, so any help would be
very much appreciated.

I have a page with form tags. Inside of the form tags is a panel that
contains a user control. The form tags are NOT inside of the user
control. Inside that user control are a few panels that contains
different steps of an application (for applying to something). When I
go to step 1 and submit, the asp:validators catch the errors and the
form doesn''t post. So far this is what I would expect. Once I correct
the errors, the validation messages go away, but the form will still
not post.

Here is what is weird. This was developed on Windows XP Pro, and works
flawlessly there. I have also tested the exact same code on a Windows
2000 server and it works perfectly there as well. As soon as I upload
this to my production Windows 2003 server it produces the behavior that
I described above. I thought to myself that this may be validation
file issues, but I am using the aspnet_client\system_web\1_1_4322 files
placed in the root of my application.

This is at a web host, not my own windows 2003 server, so I am somewhat
limited as to what I can see or do on that server.

Does anyone have ANY ideas at this point? Any help would be great!
Thanks,
Ian Suttle



这篇关于ASP.Net表单没有发布!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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