473,761 Members | 2,455 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2686
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******** ******@tk2msftn gp13.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
3800
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
1254
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 do it in code view. With html tables I can do it in design view, dragging and dropping controls easily in the table cells. Is there any advantage to using the .net table over the html table since the framework outputs the results to an html...
3
1273
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 have the same name "commercial", so my Javascript function does'nt work. I try different way to do this, but can't find the solution.
5
1617
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 table... how can I delete this? Thanks!
3
2026
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 ...... ... </asp:datagrid> </td>
2
1215
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 from database and then add rows to this HTML table. How can I do that? Thanks
7
4353
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 sqldatasource of the formview. If i put this textboxes outside the table everything works well, but as soon as i put them inside the table (in order to organize the layout in the right way) they doesn't work. They works only as eval() and not bind()...
6
6529
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 asp: <table width="640" border="0" cellspacing="3" cellpadding="3"> <tr class="mcsmalltextbold"> <td>First Name</td> <td>Last Name</td> <td>Phone Number</td>
6
17102
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" CodeFile="Default3.aspx.vb" Inherits="Default3" %>
0
9336
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10111
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9902
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8770
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7327
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5364
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3446
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.