473,386 Members | 1,652 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.

error in display my datas in the table format

i am trying to display my datas in the table format that i am fetching from database...
while running the progrom it doesnt shows any error..
but in client side scripting the coding shows error as the element table is missing the closing tag or overlap the element header template...

Expand|Select|Wrap|Line Numbers
  1. <%@ Page language="c#" Codebehind="data.aspx.cs" AutoEventWireup="false" Inherits="WebApplication2.data" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4.     <HEAD>
  5.         <title>data</title>
  6.         <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
  7.         <meta name="CODE_LANGUAGE" Content="C#">
  8.         <meta name="vs_defaultClientScript" content="JavaScript">
  9.         <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  10.     </HEAD>
  11.     <body MS_POSITIONING="GridLayout">
  12.         <form id="Form1" runat="server">
  13.             <asp:Repeater id="customer" runat="server">
  14.                 <HeaderTemplate>
  15.                     <table border="1" width="100%">
  16.                         <tr bgcolor="#b0c4de">
  17.                             <th>
  18.                                 Customer Id</th>
  19.                             <th>
  20.                                 Companyname</th>
  21.                             <th>
  22.                                 City</th>
  23.                         </tr>
  24.                 </HeaderTemplate>
  25.                 <ItemTemplate>
  26.                     <tr bgcolor="#f0f0f0">
  27.                         <td><%#DataBinder.Eval(Container.DataItem,"CustomerID")%>
  28.                         </td>
  29.                         <td><%#DataBinder.Eval(Container.DataItem,"CompanyName")%>
  30.                         </td>
  31.                         <td><%#DataBinder.Eval(Container.DataItem,"City")%>
  32.                         </td>
  33.                     </tr>
  34.                 </ItemTemplate>
  35.                 <FooterTemplate>
  36.                     </table>
  37.                 </FooterTemplate>
  38.             </asp:Repeater>
  39.         </form>
  40.     </body>
  41. </HTML>
Feb 24 '07 #1
1 1165
kenobewan
4,871 Expert 4TB
I think that I know what you mean. Try taking the opening and closing of the table outside the repeater.
Feb 24 '07 #2

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

Similar topics

9
by: Bob Bedford | last post by:
Where to find a comprehensive document on how take datas from XML and put them in a Mysql Database. I've many sites sending us XML files. We have to parse datas and save those datas on Mysql. ...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
5
by: Susan Bricker | last post by:
Greetings! Can you help me? Here's the error: “Run-time error ‘2001’. You canceled the previous operation.” Here's the form description: has 2 controls involved with this error: =...
5
by: hpy_awad | last post by:
I wrote that example from a book and there is en error in the display module that it does not showing all the records are entered in the input module. I traced with some printf statments without...
0
by: napolpie | last post by:
DISCUSSION IN USER nappie writes: Hello, I'm Peter and I'm new in python codying and I'm using parsying to extract data from one meteo Arpege file. This file is long file and it's composed by...
8
by: ananjy | last post by:
Hi when i m trying to execute my ajax code using a link to display datas from another page named second.php., i got an error when the page loads in "ie"., which runs perfectly in firefox., here...
0
by: hussainiyad | last post by:
Dear All i,m totlally new for vb 6.0 and i,m doing a invoice project and i,m facing a issue , can you plz tell me solution i,m trying to retrive some datas from sql (Product table) it...
0
by: imagetvr | last post by:
Hello I am using windows XP I need a small programme in Visual basic 6 with Access 2000 I have two tables for example one table named student other table named section In student table...
6
by: AAaron123 | last post by:
I'm using the CreateUserWizard Web Server Control The error message when the passwords do not match is colored red. Red does not show well against my background so I like to change that color. I...
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...
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
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
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.