DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   Get data from database and display in the appropriate format. (http://www.daniweb.com/forums/thread201776.html)

nccsbim071 Jul 5th, 2009 9:19 am
Get data from database and display in the appropriate format.
 
I have business requirement and i need to diplay records of data in certain format. My problem is as below:

I have database with two tables names "Restaurant" and "Restaurant_Associates". "Restaruant" table stores list all the restaruants available in town wheres "Restaurant_Associates" sotres the list of associates for particular restaruant in "Restaurant" table. One restaurant can have so many associates.

Now my problem is to display the Restaurant and their Associates in the form as given below:

Restaurant1
Restaurant1 Associate1
Restaruant Associate2
Restaruant Associate3
Restaruant2
Restaruant2 Associate1
Restaurant2 Associate2
Restaurant 2 Associate2

in the above format with Edit and Delete link by the side of associates.

How can i do this using different server side controls in ASP.NET or by any other method available in .NET

Thanks
Randhir:icon_confused:

adatapost Jul 6th, 2009 2:07 am
Re: Get data from database and display in the appropriate format.
 
nccsbim071,

Quote:

have business requirement and i need to diplay records of data in certain format.
Post your code so we can help you. Source program must be surrounded with BB code tags: See # icon at toolbar and also read How to use bb code tags?.

nccsbim071 Jul 6th, 2009 2:53 am
Re: Get data from database and display in the appropriate format.
 
I don't have any codes. I don't have any idea how to display the data in above given format. I haven't done anything for above problem. I just need idea of how it can be done using different ASP.NET server controls and programming using c#.

adatapost Jul 6th, 2009 3:00 am
Re: Get data from database and display in the appropriate format.
 
nccsbim071,

Don't waste the time. Purchase some books (ASP.NET/Html/Javascript/Css/C# or VB.Net) and read MSDN online pages.

nccsbim071 Jul 6th, 2009 6:23 am
Re: Get data from database and display in the appropriate format.
 
thanks that was really a great help.

nccsbim071 Jul 6th, 2009 6:56 am
Re: Get data from database and display in the appropriate format.
 
This doesen't mean i do not have any idea about server side controls i just need the hint of doing it.

Thanks
Please help


All times are GMT -4. The time now is 7:45 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC