469,327 Members | 1,226 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

How do I store values in table cells

I have created a table that I want to fill with calculated values. I have
given ID's to each cell. This must NOT be the way since I can't address
these ID's. How do I store values in table cells from my PostBack?

Thanks.

Larry Woods
Jul 19 '05 #1
3 1606
Larry Woods wrote:
I have created a table that I want to fill with calculated values. I
have given ID's to each cell. This must NOT be the way since I can't
address these ID's. How do I store values in table cells from my
PostBack?

Thanks.

Larry Woods


This is a client-side code question. You should post client-side questions
on a newsgroup with "dhtml" in its name, or perhaps one of the m.p.scripting
groups (depending on which client-side language you wish to use).

This always works for me:

....
<td id="cellid" ...

....
cellid.innertext = "some text"

HTH,
Bob Barrows


Jul 19 '05 #2
Yes, I figured it out...and it IS a server function! As you say, you
address cells in tables through the Rows and Columes collections, InnerHTML
property!

Larry

"Bob Barrows" <re*******@yahoo.com> wrote in message
news:ed**************@TK2MSFTNGP10.phx.gbl...
Larry Woods wrote:
I have created a table that I want to fill with calculated values. I
have given ID's to each cell. This must NOT be the way since I can't
address these ID's. How do I store values in table cells from my
PostBack?

Thanks.

Larry Woods
This is a client-side code question. You should post client-side questions
on a newsgroup with "dhtml" in its name, or perhaps one of the

m.p.scripting groups (depending on which client-side language you wish to use).

This always works for me:

...
<td id="cellid" ...

...
cellid.innertext = "some text"

HTH,
Bob Barrows

Jul 19 '05 #3
Larry Woods wrote on 20 sep 2003 in
microsoft.public.inetserver.asp.general:
"Bob Barrows" <re*******@yahoo.com> wrote in message
news:ed**************@TK2MSFTNGP10.phx.gbl...
Larry Woods wrote:
> I have created a table that I want to fill with calculated values.
> I have given ID's to each cell. This must NOT be the way since I
> can't address these ID's. How do I store values in table cells
> from my PostBack?


This is a client-side code question. You should post client-side
questions on a newsgroup with "dhtml" in its name, or perhaps one of
the

m.p.scripting
groups (depending on which client-side language you wish to use).

This always works for me:
...
<td id="cellid" ...
...
cellid.innertext = "some text"


Yes, I figured it out...and it IS a server function! As you say, you
address cells in tables through the Rows and Columes collections,
InnerHTML property!


[please do not underquote on usenet]

Please explain how this could be a server function, Larry. ASP does not
know about innerText. perhaps we can learn something.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Forconi Boris via .NET 247 | last post: by
7 posts views Thread by Matt Kruse | last post: by
3 posts views Thread by toffee | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by listenups61195 | last post: by
reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.