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 653467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:23:08+00:00 2026-05-13T22:23:08+00:00

I click on a link from one page that does a redirect to another

  • 0

I click on a link from one page that does a redirect to another page (Response.Redirect(page.aspx)).

The browser churns for about 30 seconds and the page displays. I’m trying to track down why it takes so long to load the page.

The page hosts two other custom controls.

I have commented out the lines of code for each and both controls, and the page still takes about 30 seconds to load.

I’ve set breakpoints on the Page_Load event for each of the controls as well as page.aspx and it also takes about 30 seconds from clicking the link with the Response.Redirect to the first break point.

I loaded up task manager and clicked on the link. I notice aspnet_wp.exe and csc.exe run during this 30 second time frame.

I’m wondering if there are some sort of code-behind shinanigans going on while I’m waiting for the page to load.

This only occurs the first time I click on the link. Afterwards, it’s not as slow.

I’ve googled but there’s not a lot of useful information about this. Anyone have any ideas?

Thanks,

—Dan—

  • 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-13T22:23:08+00:00Added an answer on May 13, 2026 at 10:23 pm

    The very first time that the page is load, then the asp.net compile a lot of pages, almost every one found on the same dir, including modules, and dlls found on bin.

    To speed up (your development) try use this option on web.config (only on your development computer).

    <compilation batch="false" ... >
    

    Using batch=”false” asp.net compiles only one page, the one you are on it, so you get a big time the first time for the dlls, but after that, is a lot less if you have 200 pages, and you only change one, and you develop/debug only one.

    Also if you can, try do not use App_Code directory, and place all your code inside a dll.
    Look more about compilation options on web.config to make it even run faster, change for example the temporary directory to a faster different disk than the C:.

    Second trick

    I will like to say one more trick that I found here on stackoverflow.

    <compilation optimizeCompilations="true">
    

    You only need to have install an ms patch http://support.microsoft.com/kb/961884
    I have test it and the results are very good.

    .net 4 and Visual studio 2010

    The same think stands, but you do not need to run the patch.

    Web Farm

    I have notice that on web farm the first time that application is run, if you have many work on global.asax on application start, then I recoment to use Mutex and let only one pool make the compile of the pages ! Or else there are possibilities for conflicts and huge delay to start the application – especial if you use mutex on other part of the program.

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

Sidebar

Related Questions

I am trying to link from one part of the page to another using
When a user click a link, it would redirect them to a page, something
I want people to click on a link (generated from an asp:HyperlinkField) and have
I want to pass a language id for each link i click from my
I want to toggle element that id's pg when click link. header: <title>Example</title> <script
When i click a link im calling a servlet. When i click that link
Why when I click a link in the page loaded in the WebView in
I have an element like so: <a class='link' href='/page1'>Page 1</a> It has a click
I'm thinking I need a browser plugin that does the following, and if it
I asked a precursor to this question here: Click link in DIV and show

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.