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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:03:36+00:00 2026-05-10T22:03:36+00:00

I have Visual Studio 2008 Professional and I am having issues with expanding and

  • 0

I have Visual Studio 2008 Professional and I am having issues with expanding and collapsing method code blocks in ASP.Net Generic Handler pages (.ashx)

I would have thought you could do the same thing like in the code behind of .aspx web pages.

I have this same issue on other boxes even with VS 2008 Standard and VS 2005 Professional. All boxes have been fully patched (OS and Visual Studio.)

Does anybody have any suggestions as to enabling this feature?

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-10T22:03:36+00:00Added an answer on May 10, 2026 at 10:03 pm

    You can force Visual Studio to ignore the fact that it’s code in front you’re working with by going to:

    Tools | Options

    And opening the ‘Text Editor | File Extensions’ tab.

    Create a new entry for extension ‘ashx’, mapped to editor ‘Microsoft Visual C#’ (or ‘Microsoft Visual Basic’, as your preference takes you), and ‘Add’ it.

    OK the dialog, close and re-open your ashx file, and your code blocks willl collapse to your hearts content, but the @ directive will be rather ugly.

    You have the same issue if you have serverside script in the .aspx file (for example in a web site project and you don’t ‘Place code in a seperate file’), then you cannot collapse the class blocks in there either.

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

Sidebar

Related Questions

i have visual studio 2008 in with i'm doing an ASP.NET application. Now i
I'm using Visual Studio 2008 Professional in C++ with Windows Form, I have a
I have Visual Studio 2008 (sp1, .NET 3.5). I have installed Silverlight 3 SDK
I currently have Visual Studio 2008 Professional installed on my Windows 7 (x64) laptop.
I am using visual studio 2008 professional edition. In my solution I have about
I'm running Visual Studio 2008 Professional Version 9.0.30729.1 and am having a serious problem
I have Visual Studio 2008 Professional and when I click on menu View ->
I have a trial version of Visual Studio 2008 Professional Edition but also a
We have a project with many developers. Some use Visual Studio 2008 Professional with
If I have Visual Studio 2008 and .NET framework 4.0, can I run a

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.