Click here to Skip to main content
15,900,815 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: write data from sql table into xml file and then bind it in treeview? Pin
Abhijit Jana2-Jul-08 7:00
professionalAbhijit Jana2-Jul-08 7:00 
QuestionRepeaters, Repeaters, Repeaters Pin
Sam Heller2-Jul-08 4:49
Sam Heller2-Jul-08 4:49 
AnswerRe: Repeaters, Repeaters, Repeaters Pin
led mike2-Jul-08 5:01
led mike2-Jul-08 5:01 
Questionstored procedure like statement Pin
eyeseetee2-Jul-08 2:39
eyeseetee2-Jul-08 2:39 
AnswerRe: stored procedure like statement Pin
Sherin Iranimose2-Jul-08 2:50
Sherin Iranimose2-Jul-08 2:50 
GeneralRe: stored procedure like statement Pin
eyeseetee2-Jul-08 2:54
eyeseetee2-Jul-08 2:54 
GeneralRe: stored procedure like statement Pin
Sherin Iranimose2-Jul-08 3:15
Sherin Iranimose2-Jul-08 3:15 
QuestionBest desgin Pin
kjosh2-Jul-08 2:35
kjosh2-Jul-08 2:35 
Hi,

In my aspx page, I have 3 tabs. tab1, Ownership, Location.

first tab: tab1 entity shows the fields some x, y, z.

Second tab: Ownership: this owner of the above business may be some xxx company, and person.

Ownership tab display details like the below:

Owner Type: dropdownlist: Person or business

if person is selected take them to the Person.aspx page, there he can add the person details like name,ssn, firstname, lastname, middlename,...

If Business is selected, take them to another page, there he can enter, details regarding the business.

The Ownership may contain up to x number of businesses(each buisness have details), y number of persons(each person have the above details).

Third tab: Location: stores the physical address, mailing address.

Now, I have to define the classes in business layer for the above scenario:

a) tab1 class

b) Defined one class i.e business contain the details of the busienss. Person class having the fields for name, ssn, lastname, middle name.

c) defined class Address: having the fields, properties for street address, city, state, country, zipcode.

They can have multiple businesses, persons, adresses.

Now defined another class like the below:

Class Application //this class is to store the above details of 3 tabs.

{

#region fields

//Tab1 entity

tab1 t;

//Business class entities

Collection<Business> bus;

//Person class entities

Collection<Person> Persons;

//Address tab

Collection<Address> PhysicalAddress;

Collection<Address> MailingAddress;

}

I am using the collection to store the multiple values of the class objects. So In presentation layer I can bind the collection to GridView.

Could anyone specify above approach is good enough? Any other areas I have to take care of?

Thanks in advance.
Questionmessenger on web page Pin
amitsunnuu2-Jul-08 2:19
amitsunnuu2-Jul-08 2:19 
QuestionSQL Server in Remote Machine Not Connecting.........Please Help Pin
codingrocks2-Jul-08 1:58
codingrocks2-Jul-08 1:58 
AnswerRe: SQL Server in Remote Machine Not Connecting.........Please Help Pin
N a v a n e e t h2-Jul-08 2:01
N a v a n e e t h2-Jul-08 2:01 
GeneralSQL Server in Remote Machine Not Connecting.........Please Help Pin
codingrocks2-Jul-08 2:19
codingrocks2-Jul-08 2:19 
GeneralRe: SQL Server in Remote Machine Not Connecting.........Please Help Pin
eyeseetee2-Jul-08 2:22
eyeseetee2-Jul-08 2:22 
GeneralRe: SQL Server in Remote Machine Not Connecting.........Please Help Pin
codingrocks2-Jul-08 2:25
codingrocks2-Jul-08 2:25 
GeneralRe: SQL Server in Remote Machine Not Connecting.........Please Help Pin
N a v a n e e t h2-Jul-08 2:37
N a v a n e e t h2-Jul-08 2:37 
AnswerRe: SQL Server in Remote Machine Not Connecting.........Please Help Pin
Sherin Iranimose2-Jul-08 2:25
Sherin Iranimose2-Jul-08 2:25 
GeneralSQL Server in Remote Machine Not Connecting.........Please Help Pin
codingrocks2-Jul-08 2:37
codingrocks2-Jul-08 2:37 
GeneralRe: SQL Server in Remote Machine Not Connecting.........Please Help Pin
Sherin Iranimose2-Jul-08 2:44
Sherin Iranimose2-Jul-08 2:44 
GeneralRe: SQL Server in Remote Machine Not Connecting.........Please Help Pin
codingrocks2-Jul-08 2:55
codingrocks2-Jul-08 2:55 
GeneralRe: SQL Server in Remote Machine Not Connecting.........Please Help Pin
Sherin Iranimose2-Jul-08 3:03
Sherin Iranimose2-Jul-08 3:03 
GeneralRe: SQL Server in Remote Machine Not Connecting.........Please Help Pin
codingrocks2-Jul-08 3:09
codingrocks2-Jul-08 3:09 
GeneralRe: SQL Server in Remote Machine Not Connecting.........Please Help Pin
Sherin Iranimose2-Jul-08 3:17
Sherin Iranimose2-Jul-08 3:17 
Questionto generate textbox dynamically in asp.net Pin
gaurav mangal2-Jul-08 1:40
gaurav mangal2-Jul-08 1:40 
AnswerRe: to generate textbox dynamically in asp.net Pin
Imran Khan Pathan2-Jul-08 2:10
Imran Khan Pathan2-Jul-08 2:10 
GeneralRe: to generate textbox dynamically in asp.net Pin
gaurav mangal2-Jul-08 20:16
gaurav mangal2-Jul-08 20:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.