Code-Behind doesn't show
-
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?
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 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?
-
-
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?
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 -
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 easierWell, 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?
-
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?
-
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?
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 -
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 easierThank 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!
-
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?
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.
-
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?
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