Hello All,
I am very new to programming and would appreciate any help. I am creating a website with Visual Studio 2008 and sqlexpress. The database has 4 tables, companies, contacts, state, and sstateandcompany. I have an asp.net C# page that when you select a state from a drop down list it returns a list of companies and their address and all contact personel from that state on the screen. I am using a DataSource with an sql select statement to return the data, which it does. The problem is that it lists the company name for every contact person. For example:
company1 first contact person
123 main st.
suite 1
some city, state 12345
company1 second contact person
123 main st.
suite 1
some city, state 12345
How can I have it list the compny name once, and to the right list all the contact personel for that company. For example:
company1 first contact person
123 main st. second contact person
suite 1
some city, state 12345
Thank you in advance for any help you can provide.
I am very new to programming and would appreciate any help. I am creating a website with Visual Studio 2008 and sqlexpress. The database has 4 tables, companies, contacts, state, and sstateandcompany. I have an asp.net C# page that when you select a state from a drop down list it returns a list of companies and their address and all contact personel from that state on the screen. I am using a DataSource with an sql select statement to return the data, which it does. The problem is that it lists the company name for every contact person. For example:
company1 first contact person
123 main st.
suite 1
some city, state 12345
company1 second contact person
123 main st.
suite 1
some city, state 12345
How can I have it list the compny name once, and to the right list all the contact personel for that company. For example:
company1 first contact person
123 main st. second contact person
suite 1
some city, state 12345
Thank you in advance for any help you can provide.