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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:31:09+00:00 2026-05-12T07:31:09+00:00

I often hit F7 when viewing the .aspx page I am working on to

  • 0

I often hit F7 when viewing the .aspx page I am working on to get to the code-beind, but sometimes just out of natural habit I hit F7 again (not sure why, but it happens often enough to be frsutrating). Hitting F7 on the code-behind switches to design view for the .aspx which often times takes a while to render.

I already have ‘source view’ as the default open, but I would like F7 when in the code-behind to swap back to the .aspx source instead of design… is this possible?

  • 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-12T07:31:10+00:00Added an answer on May 12, 2026 at 7:31 am

    http://www.codeproject.com/KB/macros/ToggleAspNetCodeBehind.aspx?print=true
    with the following modifications should be what you need:

    **Change the line:**
        OpenCodeBehindFile(activeDoc)
    to:
      OpenCodeBehindFile(activeDoc & ".cs")
    
    **Change the line in OpenCodeBehindFile from:**
      projItem.Open(Constants.vsViewKindCode)
    to:
      projItem.Open(Constants.vsViewKindCode).Activate()
    

    Reference: http://social.msdn.microsoft.com/forums/en-US/csharpide/thread/90ccfd68-c083-49a4-947a-03178d6af288/

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

Sidebar

Related Questions

Often I find myself interacting with files in some way but after writing the
Often, programmers write code that generates other code. (The technical term is metaprogramming ,
I just added some computationally expensive code to an Android game I am developing.
When modifying code I find I often have to go through dozens of files
I like to use the Del key when I type, but often miss and
Often when searching for information i hit the problem, that the author of an
Often times a browser will remember the form-state when the refresh button is hit.
When using Delphi, any version, I sometimes happen to hit the insert key and
How often do we see stuff like Send this page to a friend on
I'm working on a Scala-based analytics system (http://www.hiringthing.com), and I'm finding that I'm often

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.