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

difference between html table and asp:table

Hi

I work with .net 1.1 and i wanted to know the difference between a html
table and a <asp:table>? Which one is better for a consistent layout of
your asp.net pages?

ch Beffmans

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #1
1 2661
They both produce an html table. All controls only produce html but server
controls like asp:table will likely emit more properties/values in their
output.

HTML elements in ASP.NET files are treated as text, server controls are
treated as objects. To make these html elements server side programmable
you can add a runat="server" attribute to the HTML element. The main
difference between htl table and asp:table is the way they can be
nested,created, bound and controlled at runtime as an object rather than a
string of text.

Theres a good description here:
http://www.asp101.com/lessons/webcontrols.asp

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

<Beffmans> wrote in message news:eY**************@tk2msftngp13.phx.gbl...
Hi

I work with .net 1.1 and i wanted to know the difference between a html
table and a <asp:table>? Which one is better for a consistent layout of
your asp.net pages?

ch Beffmans

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #2

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

Similar topics

3
by: bubbles | last post by:
i have a HTML file and it already has a HTML table and a few rows created by default.. however, i would like to add more rows to this table programmatically may i know how?
0
by: Stephen | last post by:
I use asp.net tables to format the layout of my web forms (in web matrix). One thing I really don't like about asp.net tables is if you want to alter objects or controls in the table you have to...
3
by: Andre | last post by:
Hi, I have a <ItemTemplate> with a HTML Table inside, "id=commercial" who display Ads on our site. But for each Store, i have to put a different CSS Class name to my Table, but all the table...
5
by: Arjen | last post by:
Hi, The login control (<asp:Login) generates a HTML table. I have used my own template without table's. The control generates <table> ... my design(template) ... </table>. I don't like the...
3
by: CalSun | last post by:
I have a datagrid with about 15 columns bound at run time. I create an html table and have this datagrid inside. <table align=center width="90%"> <tr> <td> <asp:datagrid ...... ......
2
by: Sehboo | last post by:
I have an ASP.NET page which has bunch of stuff. In the middle somewhere (in a table), I want to add rows of records from database. So when user clicks on this button, I want to go read the data...
7
by: Lorenzino | last post by:
Hi, I have a problem with bindings in a formview. I have a formview; in the insert template i've created a wizard control and inside it i have an HTML table with some textboxes bound to the...
6
by: Bill | last post by:
Hi All, New to the whole .Net and C# thing but trying. In classic asp this was simple to fill a table with dynamic content and hyperlinks. Here is an example of what I am trying to do in classic...
6
by: Dan | last post by:
Hi, i defined a html table with Visible="false", but i still see it in the browser. Why and how to hide that table? Thanks Dan %@ Page Language="VB" AutoEventWireup="false"...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.