tags:

views:

50

answers:

3

I wanna build an online project by using ASP.NET ,

It is an online timetable creator which takes the information from different schools , stored them in a DB then build a timetabel object for each school.

first: what type of a website/project should i use in visual sudio 2010?

second: how i can store the timetabel object -that made from C# class- and make reference to its school row in a DB? Thanks =')

A: 

Hmm. Not sure I understand the question. I'd use a typical ASP.NET Web Application project type.

As for the database question, I think you'll want to have a "School" table as well as a "Timetable" table. Then you can create a linking table (something like "SchoolTimetable") which links one school's ID to a timetable's ID. That would be the strict way to do it. If it's a 1-to-1 relationship, however, you can simply have a TimetableID column in the school table, or vice-versa, a SchoolID column in the Timetable table.

Hope this helps.

Ouallada
+1  A: 

This article explains the main differences between project and website in a simple way.

http://www.dotnetspider.com/resources/1520-Difference-between-web-site-web-application.aspx

And here you have another link to more info on the subject.

http://stackoverflow.com/questions/590501/difference-between-web-site-and-project-in-visual-studio

parla
A: 

Use Web Site project if your are planning to make rather simple than complex solution. It is at least easier to debug.

pukipuki