October 19, 2010 at 10:35 am
I'm developing a multi-page web application (ASP.NET 3.5, Visual Studio 2008, VB 2008). I plan to design and implement Custom Business Object, a Data Access Layer and Business Logic Layer and use the objectdatasource control and bind it to a grid view.
But first I'm designing the database in SQL Server 2008. I have my data tables about 90% designed and I'm designing the lookup tables. And I just want to make sure I'm approaching this correctly or if their is a better approach.
It looks as though I have a many-to-many relationship between two of my lookup tables, ActivityDetailType and LocationType. Normally, I would use a junction table called ActivityLocationType but this is my first attempt at web developement and I need these values to be populated in the combo boxes as mentioned earlier. (See attachment)
The user will select the Activity (ActivityDetailType) from the first combo box. Based on their selection I would like to filter the next combo box with the values they can choose (LocationType) based on their previous selection. Click "ADD" and have it show up in a gridview with Edit and Delte options.
Is this approach appropriate or should I be doing something completely different?
FYI - I'm pretty much new to everything! And the ActivityType Table is for output (Report) purposes.
Thanks
October 19, 2010 at 12:45 pm
Sounds like you're approaching it the right way. That's pretty standard and works as expected.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
October 19, 2010 at 12:51 pm
Thanks GSquared,
It's nice to have some validation (no pun intended). Posted this question to another site and the reply I got was from someone coming from a PHP and Javascript background. I'm not quite into that yet. Just OOP with vb 2008 and asp.net 3.5
October 20, 2010 at 8:45 am
You're welcome.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply