473,386 Members | 1,693 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,386 software developers and data experts.

data repeater - table layout vs schema

Hi all,

Ok - I need to plonk a repeater in my form which is using a template (table
and series of web user controls)...as a result I have something like this
(short version)
<table>
<tr>
<td>
<!-- main app content goes here-->
</td>
</tr>
</table>
Right, so that's where I need the repeater to go - the repeater will be
producing a series of hyperlinks based on the name and id pulled from a
database and then me adding the full URL etc to it before it goes to the
page.

<asp:Repeater id="SubjectList" runat="server">
<HeaderTemplate>
<table cellspacing="0" cellpadding="0" border="0">
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<%# DataBinder.Eval(Container.DataItem, "SubjectLink")
%>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>

Now - I am getting messages appearing (which dont appear to prevent the app
from running) - which stat that I cant have a repeater within a <td> and
that I havent closed the <table> tag (within the header template etc) - and
so on.

I appreciated I could either

a) Close all html tags infront of the repeater
b) Remove the schema line from the html (which was added by default)
c) Make the header, items and footer all tables within their own right etc

but none of these seem like a good idea....my other thought was to simply
through a label up there, iterate through a recordset in the code behind
page, create a string add <br>'s etc to it and then dump it to the page...

Has anyone got any ideas/advice - I've not used repeaters or datagrids
really yet, only in a couple of small tests/examples when I first started
looking at .net - so any advice would be appreciated...

Regards

Rob
Nov 18 '05 #1
0 2237

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Group IIS | last post by:
Hi all, I am using ALTOVA XMLSpy. The start of my XML file looks like this: <?xml version="1.0" encoding="UTF-8" ?> <Submission xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
1
by: David Bartosik - MS MVP | last post by:
I am wanting to display my data in columns horizontally across the page rather than vertically down the page to avoid scrolling. in other words rather than have column 1 column 2 I want...
1
by: Henry Nelson | last post by:
Hi all I'm very new to dotNet and just trying to get my head around the right way to do the thing that I would normally do in asp. In asp I would loop through a recordset and output all the...
4
by: Ryan Ternier | last post by:
Hello, I have a repeater control that does the following on the ItemDataBound event. It works perfectly, except that when it prints out, the names of the controls aren't what I'd expect. ...
1
by: Pitcairnia | last post by:
We have been using a repeater to spit out images to a page and our seperator is simply a non-breaking space. This is the style we need because it adjusts nicely for the users resolution and width...
4
by: Rudy | last post by:
Hello all! I would like to take a row from a table and display this info in a nice layout. I tried the the reapeater, can't seemm to do too much with that. And I don't want a grid layout. I...
3
by: gg77 | last post by:
Hi, I don't have much knowledge of the table control. I am basically trying to use a table thats populated with data rows from a dataSet but currently things aren't working for me. below is...
2
by: Gary Coutts | last post by:
Hi, This is a newbie question. I am have problem with a Repeater Control that is based on the help files that came with Visual Studio, see below: <p><asp:Repeater ID="myReapter"...
3
by: Emma Middlebrook | last post by:
Hi there, I've been trying to implement a repeater control in an ASP.NET 2 page but I can't seem to get the layout exactly how I want and I'm not sure if it's something that I am doing wrong or...
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
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.