Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How do you write .NET code?How do you write .NET code?
Previous
 
Next
New Post
5/28/2008 9:51 AM
 

Most professional developers I know who use VS2008 use it in the following way.

They hand code the minimum amount of html in the "source" view of the "aspx" page editor.  BUT they do all of their "coding" in the code behind file that (aspx.vb or aspx.cs)

As a PHP developer you are probably used to mixing your html and your php code in the same file, as PHP is a parsed "dynamic" language.  .NET languages are compiled, for the most part and use a model whereby most pages are built from 2 or 3 files.  The idea is to keep the code separate from the layout, so that in theory a graphic designer could work with the aspx page to design the layout - using a tool like Expression (similar to Dreamweaver) and a programmer would work with the associated code file in Visual Studio.

While Visual Studio has improved its design support - it is most powerful dealing with the classes in your application.

If you want a comparison - Visual Studio is more like Eclipse than Dreamweaver - Dreamweaver is a design tool with minmal support for "script".

I would suggest you get hold of Visual Web Developer - its free - and gives you an intro into what Visual Studio can do for you.

 


Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
5/28/2008 11:23 AM
 

I rarely use the "design mode" tools in Visual Studio.   In addition to Intellisense as someone mentioned, debugging in Visual Studio can't be beat with Notepad.

 

 
New Post
5/29/2008 7:05 AM
 

Cheers for the info ,I feel like I'm in the picture now and I'll therrefore be using Visual Studio, if I need to.  I don't reckon that there's an option anyway, as the code, as mentioned, needs to be compiled. 

I'll still use my text editor for PHP though.  I don't use it for snobbery reasons, it's just how I was forced to learn it and it works for me.  As regards productivity, most of what I write is either using previously wirtten classes or just cut and pasted from previous work, apart from all the CSS + HTML, maybe.  Is there an easier way to do this?  I am open-minded.

Cheers.

 
New Post
5/29/2008 8:37 AM
 

Jonny Hollis wrote

Visual Studio feels like Dreamweaver so Visual Studio feels wrong etc...

Does anybody else use a text editor to write .NET?

Visual Studio is a text editor.  Or more properly, an IDE - Integrated Development Environment.  You don't ever need to use Design View or drag and drop if you choose not to.  Most professional programmers that have been working in the field ofr a while (not the Microsoft Certified ones who only learned drag and drop...) rarely use the Design View.  Many will use controls they've created, or at least snippets, to do a lot of the development.  Underneath the drag and drop interface VS does the same, it just shields you.

Intellisense, when you get used to using it, fills in the rest for you.  Debugging is the second major feature in VS that you don't get from any text editors.  Personally I work with IIS but the built-in web server for ASP.NET allows many developers to create 90% of their app without a server.

Dreamweaver does great for the look and feel, and can use .NET controls, but it's a designer's tool, not a programmer's.  However, if you can master both sides, you're wanted bhy every organization on the planet.

Jeff

 
New Post
5/29/2008 3:50 PM
 

Jonny:

Let's clarify something, and this confuses a lot of people starting with DNN.  You DO NOT need to compile DNN, or a module you write for that matter, when working with ASP.Net 2.0 or above.  You DO NOT need to get and install the source version of DNN either.  Install the "Install Package" to get started and with it you will still be able to develop your own custom modules if you wish.  By the way, the DNN core is actually pre-compiled using the "old fashion" architecture of ASP.Net 1.1, or WAP for Web Application Project.  The new way of doing things is WSP or Web Site Project.  The latter does not apply to the core itself but to the modules you develop.  With WSP the module's code is automagically compiled whenever you make a change and connect to the site.  This is much faster than having to compile the whole core project every time.  Like everything else in life, there are pros and cons for both of this approaches (and as many opinions) depending on what it is that you want to do.  See the article in the following link for a good comparison: http://forums.asp.net/p/996852/1306168.aspx#1306168.  There are many other articles out there that compare WAP with WSP but basically, if you want to develop modules and sell them without code, you need to do WAP, if you are an enterprise developer with no need to distribute your module in DLL form without code, WSP is much easier to deal with.

Good luck.

Carlos

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How do you write .NET code?How do you write .NET code?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out