Why bad with Page_Load

C

Chan

I have an XML Web Servic (.asmx) to generate an Excel file, and it
works as expected.

However, here is the bad thing,

- if this web service is called in a consumer (.aspx) Page_Load
procedure, it still generates the file but the IE/globe logo at the
upper right corner will spin forever, of course this page will never
finish.

- but if the same block of code is removed from Page_Load and placed
in another sub, say a button's OnClick event sub, it's Ok.

I don't think a call to web service can not be placed in Page_Load.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top