开发者

Why does my web page hang when I post back?

I'm working on an asp.net web page which displays data from a SQL database.

There is a form that the user can fill out to update the data. However, the form is not written with any ASP.net controls. The form is submitted using jQuery $('#myform').submit().

I have absolutely no problem with this page on my develpoment web server (VS development server, CASINI). However, when I push this out to my production server farm, my users have intermi开发者_运维问答ttent problems with the post back not working.

The page always loads in response to a GET request, but when a user submits the form, it may or may not work.

One of four things will happen when the user submits the form.

1) The form submits and everything works - the data is updated.

2) The form submits and the server times out - the data is not updated.

3) The form submits and the server returns a blank page - the data is not updated.

4) The form submits and the user sees the message "Internet Exploder cannot display the page" - the data is not updated.

There seems to be no rhyme or reason as to when the page does or does not work. The only consistent thing is that the page always loads for a GET request.

My session is out of process (for the server farm).

In no event is any meaningful error message returned. Where should I start looking for the problem?


Sounds like you could be getting a network timeout or code in an endless loop. Either unit test the DAL or start removing pieces until you find the problem.


You are talking about a number of different layers here (Jquery, ASP.NET and I assume IIS for the server farm). I would use some logging to detect in which specific area your problem is.

If the whole thing is happening on your development machine you could either use Fiddler or Firebug to debug the problem with your HTTP requests.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜