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

htmltable and table

what is the difference between a htmltable control and a table control i
know one is server control and the other is not, but when would each be
used?

also, how do you set the class of a html control to use a class in a CSS
file? it doesn't have a CssStyle property, (but the server control does).

thanks
Nov 17 '05 #1
2 2848
to answer your second question use
HtmlTable.Attributes.Add("class","yourclassname");
"suzy" <ph******@nospamming.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
what is the difference between a htmltable control and a table control i
know one is server control and the other is not, but when would each be
used?

also, how do you set the class of a html control to use a class in a CSS
file? it doesn't have a CssStyle property, (but the server control does).

thanks

Nov 17 '05 #2
Basically they are just different programming models.
Personally I find the HTMLTable to be easier to work with at design time,
while I find the web control easier to work with at run time.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"suzy" <ph******@nospamming.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
what is the difference between a htmltable control and a table control i
know one is server control and the other is not, but when would each be
used?

also, how do you set the class of a html control to use a class in a CSS
file? it doesn't have a CssStyle property, (but the server control does).

thanks

Nov 17 '05 #3

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

Similar topics

3
by: Ajay Desh | last post by:
Hi I am gettin error, if i try to find the top position of a table. Here is what i am doing.I have a HtmlTable (Table3 is the name/id) created.It has a position and a Top and Left co-ordinates...
2
by: Michael Meckelein | last post by:
Hi all! I have a table like Table myTable = new Table(); Now, I want to publish the table as part of a webpage and as part of a word document. I tried to convert the table, but the compiler...
2
by: Jay | last post by:
I have been trying to link and HTML Table to a Code behind variable. I have seen people saying that they can do this but I cannot get it to work. What am i missing? In the HTML Code I have:...
1
by: Leo | last post by:
I created a user control which is some text contained in a HtmlTable. I put this control into main form. I would like to have the ability to move this control around in the main form. I think one...
1
by: TRobran | last post by:
What I'm trying to do seems pretty straightforward so I must be missing something simple. Any help is greatly appreciated. On my page I have a DropDownList, a HtmlTable and a Button. Each row...
1
by: motorhead_maniac | last post by:
Hello, Iam trying to apply a css class while creating a html table in a server control. Iam using the HtmlTable class to generate table, the HtmlTable class has a Style property which takes...
2
by: Scott McNair | last post by:
Hi all, I have a page that displays an order confirmation to the end-user whenever he places an order. On that order is a table generated using System.Web.UI.HtmlControls.HtmlTable. My company...
0
by: redaudi | last post by:
I'm hoping someone might be able to help me with the following issue. Basically I'm creating a htmltable on the fly and then simply populating it with rows and cells accordingly. My test site ...
0
by: purnimakarnati | last post by:
Hi All, Can anybody solve my problem. I created a HTMLTable with a dataset by a method called addTable(dataset) After creating a new table and new row I am adding cells and in each cell I am...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
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
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...
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,...

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.