PageLoad gets fired more than once..

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I make a response.redirect to an ABC.aspx page from my web application. In
the Page Load event of the ABC.aspx page I make a call to a web method of a
web service.But what I notice here is that after the webmethod returns, the
Load event of ABC.aspx is fired again and hence it again calls the web
method. This cycle repeats two times after I make an actual response.redirect
to ABC.aspx. i.e. The Load event of ABC.aspx page gets fired 3 times. Wherein
I make a call once but the rest of the two times it gets fired
automatically.Any ideas on why is this happening and how can I avoid it ?

Thanks in advance,
 
The last line of code in my Load event is "Response.BinaryWrite()". I just
wonder that does this cause the Load event to reoccur ?
 
Back
Top