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

row height in dynamic asp:table

Why can't I set height of a table row in the code:

tRow.Height = "35"

or

tRow.Height = 35

both fails?

/M

Nov 18 '05 #1
4 3854
Hi,

You need to specify it in units:

tRow.Height = Unit.Pixel("35")

Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"hansiman" <ha***@hotmail.com> wrote in message
news:gn********************************@4ax.com...
Why can't I set height of a table row in the code:

tRow.Height = "35"

or

tRow.Height = 35

both fails?

/M

Nov 18 '05 #2
thanks, but ...

even if I state "Imports System.Drawing"

tRow.Cells = Unit.pixel(35)

fails

The examples in VS seem only to imports System.Drawing

/M

On Sat, 2 Oct 2004 06:40:24 -0500, "Ken Dopierala Jr."
<kd*********@wi.rr.com> wrote:
Hi,

You need to specify it in units:

tRow.Height = Unit.Pixel("35")

Good luck! Ken.


Nov 18 '05 #3
Hi,

It isn't in System.Drawing. If you hover your mouse over the error it
should tell you the namespace. Try:

tRow.Height = System.Web.UI.WebControls.Unit.Pixel("35")

Also in your code below you are trying to set Cells to a height. You can't
do that, Cells is a read-only property. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"hansiman" <ha***@hotmail.com> wrote in message
news:r5********************************@4ax.com...
thanks, but ...

even if I state "Imports System.Drawing"

tRow.Cells = Unit.pixel(35)

fails

The examples in VS seem only to imports System.Drawing

/M

On Sat, 2 Oct 2004 06:40:24 -0500, "Ken Dopierala Jr."
<kd*********@wi.rr.com> wrote:
Hi,

You need to specify it in units:

tRow.Height = Unit.Pixel("35")

Good luck! Ken.

Nov 18 '05 #4
Thanks a lot :-)

On Sat, 2 Oct 2004 07:21:50 -0500, "Ken Dopierala Jr."
<kd*********@wi.rr.com> wrote:
Hi,

It isn't in System.Drawing. If you hover your mouse over the error it
should tell you the namespace. Try:

tRow.Height = System.Web.UI.WebControls.Unit.Pixel("35")

Also in your code below you are trying to set Cells to a height. You can't
do that, Cells is a read-only property. Good luck! Ken.


Nov 18 '05 #5

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

Similar topics

1
by: E.U. | last post by:
Hi, I an using MS-Access in order to build a site. I have this item that can have upto 10 pictures (might have none) I want to design a dynamic table which has the ID of the item at the first...
1
by: Peter Vermilye | last post by:
I have an asp:table I am populating at pageload time. This works fine. On the same page I have an asp:dropdownlist which I also populate. These two controls are not related to one another (other...
1
by: russ | last post by:
Hi all, Here's a problem I'm having with a dynamic table. Following the guidelines here (http://www.codeproject.com/aspnet/dynamiccontrols.asp), which make perfect sense. The problem is that...
0
by: BLiTZWiNG | last post by:
I have scoured the web to no avail. Any post that resembles my problem has no answer. I have an asp table on my page. I add rows and cells to it at run time with info provided from a database in...
2
by: H.c.m. Raaijmaakers | last post by:
Hi, The user can create a dynamic table. In every row are 5 input text boxes. If the second text box gets a onblur event then the value of the third box needs to become the value of the first...
4
by: Gregory Gadow | last post by:
If there is a more appropriate forum, please let me know and I will post there. Our field reps can go on to our website and select from several sets of data to create the address we then provide...
5
by: Mr Not So Know It All | last post by:
i was able to add the table via the codebehind to the repeater (itemtemplate). the key was to add it to the container. however, now, the data is repeating itself in each row. can someone help me...
0
by: Dhanasekaran B | last post by:
Dear I need to create dynamic temproray table for reporting purpose.I did't have permission for DDL commands. Without Database Administrator permission, i need to create temp. Dynamic table. (or)...
3
by: arunank | last post by:
Hi, The following code for dynamic table creation is not working. Can anyone please help me. The dynamically created rows and columns are not getting populated. CODE: ========= <html>
0
by: vmyerpady | last post by:
how to get a selected value of a dropdownlist which is created dynamically in a asp table
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.