473,796 Members | 2,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2400
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*******@comc ast.netwrote in message
news:%2******** **********@TK2M SFTNGP02.phx.gb l...
>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
1524
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 have a user control). I have a "footer" on the second/bottom row. However, when the User Control in the middle column, first row is generating a lot of text, the text is "squashing" the text in the second role!
4
1977
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 type and the context of the server control itself. Clear as mud? :-) Consider the following server control... <asp:textbox id="MemberEmail" runat="server" ></asp:textbox> TextBox renders at run-time as an HTML control... <input...
6
13026
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 is not an ASP.NET related question, but I know this group is knowledgeable and quick with responses. Thanks
4
4223
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 the server generates the HTML based on a passed in parameter. In our case, CustomerID. Every Customer ges a branded website with there logos and webpage etc.. To Avoid having 1 ASP.Net application running for each client I am attempting a more...
1
6347
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 dataset to dynamically create a Html Table control. I want to display the table on another frame page (target="main") without the web form controls (i.e. the textbox, search button, and dropdown list). I just want the table displayed only on the...
20
5653
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 client-side HTML, CSS, etc. What I want to do is somehow insert a *server control* into the , then set the server control's properties at runtime.
5
4081
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 proper location of HTML something like the following: <table>
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>
15
5280
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 show - text boxes, input boxes, buttons, hyperlinks ie the usual. The data is not obtained directly from a database.
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9531
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
10018
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9055
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
7553
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
6795
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5446
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
5578
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4120
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.