Wrox Programmer Forums
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 15th, 2010, 09:09 PM
Registered User
Join Date: Aug 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem displaying data

Hi! I need to create a list of music categories, that list is arranged in columns and rows. It is possible to make that with SqlDataSouce and another server side control ? I need to make it with minimum of coding if it is possible.
Old December 16th, 2010, 04:33 AM
samjudson's Avatar
Friend of Wrox
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts

No, there is no easy way to take a single list (I assume you only have the single item of data, i.e. 'category') and display it in a box layout. You will likely have to hand code it yourself using a table.
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
Old December 16th, 2010, 10:23 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

I guess it depends on how you want to display and order your data. If you want to display it like this:

A   B   C
D   E   F
Then it's pretty easy with an <ul> element and <li> elements with a width and a float property. If you want to display it like this:

A   C   E
B   D   F
Then it's indeed not very easy....


Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Old December 23rd, 2010, 09:42 PM
Authorized User
Join Date: Oct 2010
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post

I think if you want to arrange of list categories

In the database you should add a "ORDERs" fields.
The "ORDERS" fields by type tinyint.
It is very easy to write SQL query "Select * from Categories order by ORDERS ASC/DESC "

May be it help you

Phuc Hoang
Old December 25th, 2010, 06:35 AM
Registered User
Join Date: Dec 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem related to list

if u dynamically want to access the list then u have to use dataset or datatable to aceess in gridview or datagrid,

to access the static list simple use a table add rows and columns and show it without any data access from database.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with displaying data utyk XSLT 4 October 30th, 2009 05:50 AM
Displaying Data areed24 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 13 March 30th, 2009 01:28 PM
Problem Displaying Data Using Repeater Control cyberstore05 ASP.NET 2.0 Professional 0 January 5th, 2008 01:45 PM
Problem in Displaying preselected data in dropdown deb_kareng ASP.NET 2.0 Professional 2 August 14th, 2007 05:00 AM
Displaying My Data jamil umar ASP.NET 2.0 Basics 0 June 5th, 2006 09:48 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.