473,413 Members | 2,051 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,413 software developers and data experts.

html table control vs web table control

I am porting my first traditional app to a web-based app using VS2005
and ASP.NET 2.0. I have a page that will replace a data entry form. To
have complete control of layout, I want to use a table as a layout
device. Typically I would go with a std html table. With VS2005 I have
a choice of a html table control or the web table control. I understand
the jus of differences between the two, but I am still unsure whether
using the html control is a bad move.

The layout of the page does not have to be accessible via code. I won't
be adding rows the table dynamically or anything like that. The two
biggest questions I have are:

1. If I place web controls (like dropdown boxes) within the cells of the
html table control, will the web controls still be accessible in code?
Or do they lose their extra functionary when placed in a non-web control?

2. Will using html controls lower the processing overhead on the server
than the web controls, even if I don't take advantage of the extra
features of the web controls? I am assuming it would be lower but
that's based on my gut, not knowledge.

Thanks for all help.
Jul 11 '07 #1
2 2384
IMHO, HTML tables are easier to deal with at design time, while the Table
web control is easier to interact with at runtime.
So I generally stick with HTML tables unless I need to manipulate a table at
runtime on the server.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"Geary" <mo*******@comcast.netwrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
>I am porting my first traditional app to a web-based app using VS2005 and
ASP.NET 2.0. I have a page that will replace a data entry form. To have
complete control of layout, I want to use a table as a layout device.
Typically I would go with a std html table. With VS2005 I have a choice of
a html table control or the web table control. I understand the jus of
differences between the two, but I am still unsure whether using the html
control is a bad move.

The layout of the page does not have to be accessible via code. I won't
be adding rows the table dynamically or anything like that. The two
biggest questions I have are:

1. If I place web controls (like dropdown boxes) within the cells of the
html table control, will the web controls still be accessible in code? Or
do they lose their extra functionary when placed in a non-web control?

2. Will using html controls lower the processing overhead on the server
than the web controls, even if I don't take advantage of the extra
features of the web controls? I am assuming it would be lower but that's
based on my gut, not knowledge.

Thanks for all help.
Jul 11 '07 #2
Geary wrote:
I am porting my first traditional app to a web-based app using VS2005
and ASP.NET 2.0. I have a page that will replace a data entry form. To
have complete control of layout, I want to use a table as a layout
device.
To have complete control of the layout, I avoid using tables for layout...
Typically I would go with a std html table. With VS2005 I have
a choice of a html table control or the web table control. I understand
the jus of differences between the two, but I am still unsure whether
using the html control is a bad move.

The layout of the page does not have to be accessible via code. I won't
be adding rows the table dynamically or anything like that. The two
biggest questions I have are:

1. If I place web controls (like dropdown boxes) within the cells of the
html table control, will the web controls still be accessible in code?
Or do they lose their extra functionary when placed in a non-web control?
No, they work just fine.

If you think of it, the html tag that surrounds the entire page is not a
server control, but the server controls inside it still works. :)
2. Will using html controls lower the processing overhead on the server
than the web controls, even if I don't take advantage of the extra
features of the web controls? I am assuming it would be lower but
that's based on my gut, not knowledge.
Yes, it's slightly faster. Some less objects to create, and some less
objects to loop through when the page is rendered.
Thanks for all help.

--
Göran Andersson
_____
http://www.guffa.com
Jul 12 '07 #3

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

Similar topics

1
by: Patrick | last post by:
Problem I have an ASPX file, with a table of 3 columns, 2 rows with a usercontrol in the middle column (in the code snippet stated below, although in reality, the left hand column would also...
4
by: clintonG | last post by:
Technically speaking, this issue is not about modifying the HTML generated by server controls but preceding the HTML generated by server controls with an HTML control generated on the basis of the...
6
by: Chris Fink | last post by:
Does anyone know it is possible to include a small image(.gif .jpeg) within a <SELECT><option> so that the user would see the option text as well as a little image(icon) in the option? I know this...
4
by: Zuel | last post by:
Hi Folks. So I have a small problem. My DoPostBack function is not writen to the HTML page nor are the asp:buttons calling the DoPostBack. My Goal is to create a totaly dynamic web page where...
1
by: Al Wilkerson | last post by:
Hey, I have a Web Form with a drop down list, textbox, and search button. When click the search button an SQL server database is queried fordata. Once I have the data in a dataset I use the...
20
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
5
by: Andrew | last post by:
Hi, friends, In ASP, we use obj = CreateObject("com.dll") obj.GetHTMLText(inVal, outHTMLTxt1, outHTMLTxt2) to get different HTML strings based on input values. Then, we insert them into...
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...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
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
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...
0
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,...
0
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...

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.