Matt
Matt

Reputation: 4190

Help with getting started building an ASP.NET website using VS2010

Ok, I want to build a web site using ASP.Net. My web development skills are very small. However I have used C# a fair bit for some fairly intermediate level work (lists, dictionaries, custom classes etc)

The site I want to build will run on an intranet, and I'll be using the AD to get the current users information.

This information will be cross checked with an MS SQL 2008 database (that already exists on the network) to determine what links they can see.

Other parts of the site will allow the User Table to be viewed and modified if the current user is an admin, and have new users added.

So, what is the best way to do this? I've done some playing and basically confused myself with all the options available..

For example, I can create a New Project, which gives me options like Web Application, MVC2 Web App, MVC3 Web App, Empty Web App, Dynamic Data Entities Web App, Data Linq to SQL Web App, and then some Server controls.

But then I can also go for the New Web Site, which has Web Site, Web Site (Razor), Empty Web Site, Dynamic Data Entities Web Site, Dynamic Data Linq Web Site..

There are too many options!?!?!? And I don't understand what the difference is between them all..

What do people suggest I use?

Upvotes: 1

Views: 1058

Answers (5)

kmote
kmote

Reputation: 16775

@Matt provided a link to a useful video ("Choosing the right programming model"). In it, Microsoft's Scott Hanselman describes the distinguishing characteristics of the three primary ASP paths: ASP.NET Web Forms, ASP.NET MVC, or ASP.NET Web Pages. Here's the main bullet points from that presentation:

ASP.NET Web Forms:

  • Familiar control- and event-based programming model
  • Controls encapsulate HTML, JS and CSS
  • Rich UI controls included - datagrids, charts, AJAX (common tasks available out-of-the-box)
  • Browser differences handled for you
  • SharePoint builds on Web Forms (so, useful if you want to be a SharePoint dev)

ASP.NET MVC:

  • Feels comfortable for many traditional web developers
  • Total control of HTML markup (controls not provided; good grasp of HTML required)
  • Supports Unit testing, TDD and Agile methodologies
  • Encourages more prescriptive applications
  • Extremely flexible and extensible

ASP.NET Web Pages:

  • Easy to pick up and learn (similar to PHP or classic ASP)
  • Inline scripting model with Razor and C# or VB.NET
  • Simplified model with Top-to-bottom execution
  • Full control over your HTML
  • Friendly Helper syntax (encapsulated functionality, similar to Web Forms controls) makes extending your apps easy

All these models are built on common ASP libraries, so there is considerable overlap, and a fairly straightforward path to migrate an app from one model to another.

Upvotes: 0

H20rider
H20rider

Reputation: 2282

Ok, this is a lot of things to look at and there a are a few ways to tackle this. First all all just stick to New Web Site for now.

First things is to know if this is an intranet or internet?

it seems like it since you want to use AD, that it is an internal app.

Although there are many ways to accomplish what you are trying to do. I Think the following would be the easiest to implement.

1) Enable digest authentication 2) Set a IE group policy to the User authentication policy to Automatically logon only to intranet - This way people dont get confused to what they enter.
3) Create groups for each type of user in AD 4) Separate each functionality into different folders.
5) Set the web.config for permissons to the appororiate directories.

Upvotes: 1

DotNetInfo
DotNetInfo

Reputation: 3414

May be I am not answering to the point, but my 2cents. Why don't you go for Sharepoint development in this case. You can use Sharepoint site (having inbuilt AD support too) and develop custom webparts (like the part which queries SQL Server 2008). The advantage of using this is that you can merge the feature in intranet site (if you got one already using Sharepoint), and you can learn new stuffs too. Even it will be quick one and if in future, you want to use the Intranet site for different things, it's easily extensible with minimal fuss.

Upvotes: 2

BStruthers
BStruthers

Reputation: 958

Have you tried following some of the MSDN Beginner Developer Learning Center stuff? They have a module on Beginning Website Development.

Upvotes: 2

CtrlDot
CtrlDot

Reputation: 2513

There are some good tutorials for MVC here http://www.asp.net/mvc.

I suggest if you are building a web site to use MVC as it seems like the latest and greatest from MS at this time. My personal opinion tho.

You would want to just start with New Project.

Upvotes: 1

Related Questions