nOOb question: How do I encapsulate in Visual Web Developer Express 2008?

visual studio , csharp , encapsulation , express Miami, United States
  • 8 years ago
    Ok I get what encapsulation is, and it's great & wonderful I got it no need to keep selling me on it. But where the f... do I put it? All my classes are webpages like Default2 and MasterPage. If I try to create a class in one of the codebehind files, I can't reference it from anywhere. I put in in the codebehind, and I can use it in that codebehind. But I have another page on the same website that I want to do pretty much the same thing... but I have to re-rwite all the same methods all over again, thus defeating the point behind encapsulation in the first place. So I tried moving my methods into the masterpage codebehind but now I can't find any of them... so I close w/o saving and go back to where I was before, asking the question, where the f... do I put classes and methods that I want to reuse?

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“An idiot with a computer is a faster, better idiot” - Rich Julius