RE: Page_Load being fired twice

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 05/28/04


Date: Fri, 28 May 2004 03:39:18 GMT

Hi Nimrod,

>From your description , you found one of your asp.net be loaded twice ( the
page_load event be entered twice). Also, the second loading of the page is
requested via "get" method , yes?

After your second message, I'm abit confused on your detailed situation.
But I recommend that you first isolate the web page which has the problem
and put it into a ASP.NET web application to test rather than in a
WebService Applicatoin. Also, as you mentioned that "you intial the process
from a html embeded in a email, then what about the result if we simply
request the asp.net page in browser directly?

So simply speaking, we can first create a simple test web project and put
the problem page in it test trough browser to see whether the problem can
be repro. If this still can repro it, I suggest that you provide some
detailed info on the page 's code( especially what does it render out , or
the client html source). I've ever met a similiar issue which is caused
that the page is referenced by it self in the output . For example, in the
page 's ourput, it contains a image element like

<img src="self url" >
Then when the browser processing this element, it'll use get method to
request the certain resource, please have a check on the above things. IF
you have anything unclear or any other new findings, please feel free to
post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx



Relevant Pages

  • Re: Custom 401 page problems
    ... Since you configured IIS to send a staic for this ... Now, a 401 response comes back to the client, and the entite body is the ... it is going to make a new request for this resource ... What request do you think the browser makes to fetch the 401.gif ??? ...
    (microsoft.public.inetserver.iis)
  • Re: How to write something to a html textfield and send it?
    ... > No need for controlling any particular browser. ... I'm not familiar with HTTP user ... and building the request in your program. ... The server doesn't know anything about a textfield; ...
    (comp.programming)
  • Basic Authorization Security Issue?
    ... seems like closing the browser ... When an non-authorized URL request in our intranet web server is attempted, ... resent with the basic authorization credentials and the user is logged in. ...
    (microsoft.public.security)
  • Re: openssl from tcl
    ... "gets $fp" to retrieve the request from the web browser. ... I send a response back to the browser, using "puts $fp 'html data'", ... Because you made the client connect to localhost, ...
    (comp.lang.tcl)
  • How to send response headers from proxy to browser?
    ... The proxy server intercepts every request from the ... browser and redirect it to www.yahoo.com. ... should we do to send the response headers from proxy? ...
    (comp.lang.java.programmer)