473,387 Members | 1,300 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ASP.NET: Repeater Control

Hi, I am working on webform(VB.Net). I need some help.

Database: Column1
Title
Descptionxxxx
URL

I want to display the records as follows:

Title URL
Descptionxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx

I am using Repeater control. Is there any better way to do it, please suggest.

Thx
Ryan
Jan 15 '08 #1
6 1158
nateraaaa
663 Expert 512MB
Will there be more than one of these datatables shown on a page at one time? If so then I think a repeater is the way to go. Inside of your repeater you have several ways to display this data in the format that you need. You can create a datatable in the code behind and add the data for each row. Or you could use a datagrid or gridview with one Template column that uses labels to display the data in the format that you need. I have done what you are wanting to do using a datagrid and it works nicely. Give this a try and let me know if you run into any problems.

Nathan
Jan 15 '08 #2
Frinavale
9,735 Expert Mod 8TB
Hi, I am working on webform(VB.Net). I need some help.

Database: Column1
Title
Descptionxxxx
URL

I want to display the records as follows:

Title URL
Descptionxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx

I am using Repeater control. Is there any better way to do it, please suggest.

Thx
Ryan
I'm really not sure what you are trying to do here...
Do you have table that looks like:
Database: Column1
Title: Column2
Descptionxxxx: Column3
URL:Column4

Are you generating a table using a repeater?
Could you please provide more details on what you are doing.
I think you're going to want to look into the GridView object (if you're displaying data in a table format...)

-Frinny
Jan 15 '08 #3
Will there be more than one of these datatables shown on a page at one time? If so then I think a repeater is the way to go. Inside of your repeater you have several ways to display this data in the format that you need. You can create a datatable in the code behind and add the data for each row. Or you could use a datagrid or gridview with one Template column that uses labels to display the data in the format that you need. I have done what you are wanting to do using a datagrid and it works nicely. Give this a try and let me know if you run into any problems.

Nathan

There is only one database on a page. I tried few ways. My problem is, all this data from one column, it is like set of records. Each set should be like this.

Title1 URL1
Description1 XXXXXXX

Title2 URL2
Description2 XXXXXXX


(Title, URL,DescriptionXXXXXXX) are records in the database. i was able display them like this

Title
URL
Descption......

Thanks for the help.

Ryan
Jan 15 '08 #4
I'm really not sure what you are trying to do here...
Do you have table that looks like:
Database: Column1
Title: Column2
Descptionxxxx: Column3
URL:Column4

Are you generating a table using a repeater?
Could you please provide more details on what you are doing.
I think you're going to want to look into the GridView object (if you're displaying data in a table format...)

-Frinny

No,

Title, URL, Descptionxxx all are 3 diff. records from 1 column. I want to display them like

Record1 Record2
Record3............

Record4 Record5
Record6...........
Jan 15 '08 #5
nateraaaa
663 Expert 512MB
Your last post confuses me. Could you show us a sample of 2 or 3 records from your database table? Then show us what format you would like the data to be in using data from your sample records.

thanks
Nathan
Jan 16 '08 #6
Frinavale
9,735 Expert Mod 8TB
Your last post confuses me. Could you show us a sample of 2 or 3 records from your database table? Then show us what format you would like the data to be in using data from your sample records.

thanks
Nathan
Also, could you post an example of your exact output...
Jan 16 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Daniel | last post by:
I'm new to .Net and all of its abilities so I hope this makes sense. Basically I'm confused on when is the appropriate time to use web forms controls vs. regular HTML. For example in ASP...
11
by: Christoph Boget | last post by:
When building a form using Infopath, you can define a repeating section and stick form fields in that section. I'm curious if ASP.NET has a similar control to make it easy to design something...
3
by: Francois | last post by:
Hi, First of all sorry for the long post but I believe it is quite an interesting as well as advanced and complex problem. I have a problem with the checkbox control I have in my repeater. I...
1
by: olduncleamos | last post by:
Hello all, I am experimenting with the repeater control and ran into something that I wasn't expecting. I would appreciate if the experts can confirm or correct my understanding. Here is a...
7
by: charliewest | last post by:
Hello - I'm using a Repeater control to render information in a very customized grid-like table. The Repeater control is binded to a DataSet with several records of information. Within the...
4
by: sck10 | last post by:
Hello, I have a repeater that is bound to a SQL Server table. I would like to place a summary in the footer for the item count and product cost. I have two fields. One for the product name...
3
by: Colin | last post by:
Hello, I can manage quite well in ASP but would like some advice in the best way to achieve dynamic layout in ASP.NET and still keep the page and code separate. Let's say I already have a...
3
by: Iain Buchanan | last post by:
Moving this code below from v1.1 to 2.0... am now getting this bug... After I bind a repeater I move the repeater inside the placeholder using controls.add(), but when I do this, all the...
0
by: shamirza | last post by:
· What is view state and use of it? The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested...
2
by: dm3281 | last post by:
Hi all -- I have a strange issue. I have obtained a scripted database and compiled ASP.NET 2.0 application from a sister site that I'm trying to implement locally. I have successfully...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.