Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4035794
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:08:35+00:00 2026-05-20T12:08:35+00:00

I have an ASP.NET app that gets its data form an external service, via

  • 0

I have an ASP.NET app that gets its data form an external service, via HttpWebRequest. Currently the request is made on the Page_Load event. After that event finishes I have my objects in the page and I output their data in the HTML. Sometimes the site hangs and throws timeout exceptions. Should I move the web request to an event prior to Page_Load ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T12:08:36+00:00Added an answer on May 20, 2026 at 12:08 pm

    Well, I think it depends on what information you need for the page.

    Check this page for when data is available in the page event model and see when all of the data you need for the request is available. Also, when you get the response, what are you going to do with it? Put it in session? Just write out HTML?

    You’re probably better off handling the timeout gracefully rather than burning a web server thread waiting for an external call to return.

    You may also want to consider an async request for this data. James’ response is a great suggestion. You may want to check out the link he included.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Silverlight app that consumes a WCF service in my asp.net application.The
Assume I have an ASP.NET MVC app that's not doing anything too fancy (no
I have an ASP.NET app running in IIS that is hosting files all great
I have an asp.net mvc app running on a local iis website that is
I have an app that is a combination of asp/asp.net, and both sides depend
I'm working on an ASP.NET app that keeps a lot of data cached. This
I have an ASP.NET MVC web app and have a function that I need
I have this ASP.NET MVC app that I've deployed on IIS6/Win2003 as a virtual
I have a ASP.NET web app that utilizes ReportViewer to show local reports. Everything
I have an ASP.NET MVC 2 app that uses URLS such as: /rsvp/33c4cf68-a2fe-4c0f-9834-08838e0532c3 /rsvp/4f28dad7-b05c-4887-818f-b4ae664b7192

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.