Page_Load being fired twice

From: Nimrod cohen (nim_co_at_hotmail.com)
Date: 05/27/04


Date: Thu, 27 May 2004 16:34:09 -0700

Some points worth mentioning :
1. the project itself is a webservice containing some
webpages, amogst which, the aforementioned problematic
page.
2. this occurs when i'm initiating the process from an
html which is embedded inside an e-mail item, from an
outlook client. I have no way to test it from an http
based client, since the server is internal, so i can't
pass the link.

thanks.

>-----Original Message-----
>Hi,
>
>During the page_load of my Aspx
page "http://myMachine/MyWebApp/Quote.aspx" , i write to
the response an html that embeds a form with the action
pointing out to the same aspx page
>i.e
>Response.Write( "<html><head></head><body><form
action="http://myMachine/MyWebApp/Quote.aspx"
name="QuoteForm" method="POST"><input type="hidden"
name="response_supplier_id" value="13"/>
>....
></form></body></html>" );
>
>what happens is that my page_load function is being
fired twice, once with all the parameters in the
Request.Form arriving as expected ( the first occurance
is a POST call ), the second time i get an unwanted "GET"
call with no parameters in the Request.Form.
>
>I've checked and verified that the
AutoEventWireup=false, and no event handler duplication
has been introduced
>
>could anyone point out of this mess ?
>
>
>
>.
>



Relevant Pages

  • Re: Draw Images on fly
    ... An HTML document is pure text. ... Now, my original message said to use an ASPX page, *not* an ASCX UserControl ... and display it,the image is shown but the main page's contenttype turn to ...
    (microsoft.public.dotnet.framework.aspnet)
  • =?iso-8859-1?Q?Re:_Error_Message:__Argument_Not_optional?=
    ... Once I get the bulk of the pages converted each html page will automatically redirect to the corresponding aspx page. ... (email on the web site) ... Chip Pearson wrote: ...
    (microsoft.public.excel.programming)
  • Re: Error Message: Argument Not optional
    ... of the .html pages that you just can't live with and you'll be updating that, ... Chip Pearson wrote: ... automatically redirect to the corresponding aspx page. ... (email on the web site) ...
    (microsoft.public.excel.programming)
  • Re: Parsing an html/aspx file
    ... Compiling the ASPX and using reflection I guess that's one way to use the ... may have to play around with some compiler settings. ... I did say it would be another matter if the HTML is not well formed. ... .net parses asp.net files by looking for well formed asp.net ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Creating a static ASP.NET page and a few other newbie questions
    ... > New Item do not show just a regular aspx page to create. ... There is a HTML page type. ... In classic ASP I would just include a .inc file ... > from each page I needed to call the global functions from and define the ...
    (microsoft.public.dotnet.framework.aspnet)