By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,007 Members | 998 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,007 IT Pros & Developers. It's quick & easy.

Accessing value of hidden table cell

P: n/a
I've created an ASP table which is dynamically populated and it has a hidden
column at the end. The cell is marked as invisible but when I try and obtain
the cell value in client side script (JavaScript) then the cell does not
exist in the row's Cells collection. If I flag the cell as visible on
creation then the cell value can be accessed by the client side script.

Can someone help me out?
Jun 27 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
any control set to invisible is not rendered, so can not be accessed by
client script. you can set the style, but hidden fields seem like a better
idea.

-- bruce (sqlwork.com)
"chris" wrote:
I've created an ASP table which is dynamically populated and it has a hidden
column at the end. The cell is marked as invisible but when I try and obtain
the cell value in client side script (JavaScript) then the cell does not
exist in the row's Cells collection. If I flag the cell as visible on
creation then the cell value can be accessed by the client side script.

Can someone help me out?
Jun 27 '08 #2

P: n/a
For the reason Bruce's said, leave the column with Visible = true and hide
it with css rule display:none. You can do it by assignid the column's
CssClass="Invisible" where Invisible is defined somewhere in css as
..Invisible{displey:none}

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:BD**********************************@microsof t.com...
any control set to invisible is not rendered, so can not be accessed by
client script. you can set the style, but hidden fields seem like a better
idea.

-- bruce (sqlwork.com)
"chris" wrote:
>I've created an ASP table which is dynamically populated and it has a
hidden
column at the end. The cell is marked as invisible but when I try and
obtain
the cell value in client side script (JavaScript) then the cell does not
exist in the row's Cells collection. If I flag the cell as visible on
creation then the cell value can be accessed by the client side script.

Can someone help me out?

Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.