Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Code-Behind doesn't show

Code-Behind doesn't show

Scheduled Pinned Locked Moved C#
csharpquestionlearning
11 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    larsp777
    wrote on last edited by
    #1

    I am a teacher in C# for students at beginner level. One of my student keep having trouble that C#-express is very slow and now when we right-click the form to show code-behind nothing is shown. It's very possible that the student is doing something wrong. Is the best option to reinstall C# express 2010?

    OriginalGriffO L J A 4 Replies Last reply
    0
    • L larsp777

      I am a teacher in C# for students at beginner level. One of my student keep having trouble that C#-express is very slow and now when we right-click the form to show code-behind nothing is shown. It's very possible that the student is doing something wrong. Is the best option to reinstall C# express 2010?

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Could be. Is everything else working fine? Or is it just a very slow PC? Has he tried creating a new project from scratch and seeing what that is like? If it works fine, then it's something stupid he has done, so add bits from the "slow" project until it slows down and you should have an idea what causes it.

      The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      • L larsp777

        I am a teacher in C# for students at beginner level. One of my student keep having trouble that C#-express is very slow and now when we right-click the form to show code-behind nothing is shown. It's very possible that the student is doing something wrong. Is the best option to reinstall C# express 2010?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Delete the file, add a new. Could it have been that he simply deleted the code-behind-file?

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

        L 1 Reply Last reply
        0
        • L Lost User

          Delete the file, add a new. Could it have been that he simply deleted the code-behind-file?

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

          L Offline
          L Offline
          larsp777
          wrote on last edited by
          #4

          Ok, thanks for the suggestions. If he has deleted the codebehind but still have the other files, can you past it in from another projekt?

          P L 2 Replies Last reply
          0
          • L larsp777

            Ok, thanks for the suggestions. If he has deleted the codebehind but still have the other files, can you past it in from another projekt?

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            You're teaching this and you don't know the tooling? What's the backup policy? Is the source stored in a version control system?

            I was brought up to respect my elders. I don't respect many people nowadays.
            CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

            L 1 Reply Last reply
            0
            • P Pete OHanlon

              You're teaching this and you don't know the tooling? What's the backup policy? Is the source stored in a version control system?

              I was brought up to respect my elders. I don't respect many people nowadays.
              CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

              L Offline
              L Offline
              larsp777
              wrote on last edited by
              #6

              Well, it´s not exactly University-level. I do have a knowledge-gap there I admit but that wasn't my question. The problem isn't so much that we doesn't have a backup. The problem is why it happens. So do you have a solution to the problem or were just showing of?

              P 1 Reply Last reply
              0
              • L larsp777

                Ok, thanks for the suggestions. If he has deleted the codebehind but still have the other files, can you past it in from another projekt?

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                larsp777 wrote:

                If he has deleted the codebehind but still have the other files, can you past it in from another projekt?

                Yes.

                Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                1 Reply Last reply
                0
                • L larsp777

                  Well, it´s not exactly University-level. I do have a knowledge-gap there I admit but that wasn't my question. The problem isn't so much that we doesn't have a backup. The problem is why it happens. So do you have a solution to the problem or were just showing of?

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #8

                  larsp777 wrote:

                  So do you have a solution to the problem or were just showing of?

                  I certainly do, and that's why I've asked if you know what your backup policy is. Failing that, select Project > Show All Files and see if the .cs file is still there. If it is, right click on it and select Include In Project. But seriously though - if you're teaching something, you should know how the tooling works. What do you say if a pupil asks you something a little bit off topic?

                  I was brought up to respect my elders. I don't respect many people nowadays.
                  CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

                  L 1 Reply Last reply
                  0
                  • P Pete OHanlon

                    larsp777 wrote:

                    So do you have a solution to the problem or were just showing of?

                    I certainly do, and that's why I've asked if you know what your backup policy is. Failing that, select Project > Show All Files and see if the .cs file is still there. If it is, right click on it and select Include In Project. But seriously though - if you're teaching something, you should know how the tooling works. What do you say if a pupil asks you something a little bit off topic?

                    I was brought up to respect my elders. I don't respect many people nowadays.
                    CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

                    L Offline
                    L Offline
                    larsp777
                    wrote on last edited by
                    #9

                    Thank you, I'll try that. Well, you're right of coure and I like to think that I know the parts that we use mostly. However I do like to learn more. If a student asks something of topic I says that I don't know but will find out. Any tip is highly appreciated!

                    1 Reply Last reply
                    0
                    • L larsp777

                      I am a teacher in C# for students at beginner level. One of my student keep having trouble that C#-express is very slow and now when we right-click the form to show code-behind nothing is shown. It's very possible that the student is doing something wrong. Is the best option to reinstall C# express 2010?

                      J Offline
                      J Offline
                      Jasmine2501
                      wrote on last edited by
                      #10

                      The easiest way to view the code-behind page is to double-click on it... in the Solution Explorer. Teach your students that workflow - open files from the solution explorer. Also, as a maintenance developer for the past many years, I would appreciate it if instructors could DISCOURAGE use of the designer. It's not that it produces bad code, it's that using the designer allows you to think you know how to code web pages when you don't. Teach your students to use the split view or code view - never the designer by itself. A skill that is severely lacking here in the real world is ability to hand-code HTML(5) and ability to read and hand-code ASP.Net templates (.aspx files). This skill might not get you the job, but it will keep you in the job. The only time I've ever seen an ASP.Net developer get fired is when we discovered he couldn't code without the designers, and that was the reason he was producing lots of code that he couldn't debug.

                      1 Reply Last reply
                      0
                      • L larsp777

                        I am a teacher in C# for students at beginner level. One of my student keep having trouble that C#-express is very slow and now when we right-click the form to show code-behind nothing is shown. It's very possible that the student is doing something wrong. Is the best option to reinstall C# express 2010?

                        A Offline
                        A Offline
                        Abhinav S
                        wrote on last edited by
                        #11

                        The student might have minimized and hidden the window somewhere. It could be an issue with VS Express, but honestly that is unlikely.

                        WP Apps - Color Search | Arctic | XKCD | Sound Meter | Speed Dial

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups