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

How do I store values in table cells

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.