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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:23:05+00:00 2026-06-11T17:23:05+00:00

OS: Windows 7 Home Premium Compiler: Visual Studio 2012 Language: ASP.net C# 4 Additional

  • 0

OS: Windows 7 Home Premium
Compiler: Visual Studio 2012
Language: ASP.net C# 4
Additional Notes: Using a Master page with a script manager on. The Content pages have the AJAX panels.

In my Global.asax, I have a routing table that routes these addresses:

//Site
routes.MapPageRoute("", "{address}", "~/{address}.aspx");   
routes.MapPageRoute("", "{address}/{resource}", "~/{address}/{resource}.aspx");

This allows me to cut out the .aspx part of the page, and makes the URL look more pleasing.

When I run my site for the first time (After I restart the compiling PC), all the AJAX panels stop working. Any auto complete extender, button, text box etc loose their AJAX abilities.

I realised this was the problem, so I edited out the above code. As expected, the site restored itself to fix the AJAX issue.

But, after the previous solution, I unedited the first bit of code, only to find that all my AJAX panels still work. So, I literally have to comment out the code, reload the site, then uncomment the code for the pages to start working.

  • 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-06-11T17:23:06+00:00Added an answer on June 11, 2026 at 5:23 pm

    You need to add a route that manages the resource extensions.

    The following code fixed my problem:

    void Application_Start(object sender, EventArgs e)
    {
        RegisterRoutes(RouteTable.Routes);
    }
    
    public static void RegisterRoutes(RouteCollection routes)
    {
        //Make sure to add this BEFORE any other routes.
        routes.Ignore("{resource}.axd/{*pathInfo}");
    
        //Site
        routes.MapPageRoute("", "{address}", "~/{address}.aspx");
        routes.MapPageRoute("", "{address}/{resource}", "~/{address}/{resource}.aspx");
    }
    

    Thanks to This post.

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

Sidebar

Related Questions

Language: C# Compiler: Visual Studio 2012 O/S: Windows 7 Home Premium I have been
Windows: 7 Home Premium Visual Studio: 2012 Language: C# SQL: Server 2008 I am
When I create a ASP.NET Web Application (using .net framework 4) in visual studio
Having a strange issue with Visual Studio 2010 Professional (running Windows Vista Home Premium
I have a Dell Studio 540, 64 bit OS Windows Home Premium. My CPU
I am using the operating system Windows Home Basic Premium. I installed Oracle 10g
I have been using Visual Studio 2005 under Windows XP Pro 64-bit for C
I've installed SharePoint Foundation on Windows 7 Home Premium using the tutorial at: http://msdn.microsoft.com/en-us/library/ee554869%28office.14%29.aspx#50
Is the Windows 7 Home Premium sufficient for software development? Development would be in
O/S: Windows 7 ,Home Premium I have just installed IIS manager Express from Web

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.