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

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 1720
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bhavin G | last post by:
Hi there , I am pretty new at javascripting and i am having this huge problem. I am using asp.net and C# webapplication. In my asp.net aspx file I have a place holder for taking an html table...
3
by: Forconi Boris via .NET 247 | last post by:
Hi, I'm working on a project in witch I have to list data(products that can be selected with a certain quantity) from anXML document, with key words entered by the user. A Table isdynamically created...
7
by: Aaron | last post by:
Complete code follows. I am new to .NET programming (and programming in general) and I am having a difficult time understanding how to fill a variable in one sub, and then access it from...
0
by: Gregg | last post by:
I'm having a problem dynamically appling cell text values in a table. The problem occurs when I try to set the cell text value in any cell other than the first cell of the frist row in the table....
5
by: BLACKDOG157 | last post by:
I've made a form with a variable number of textboxes. The user fills them out, and then I need to pick up the values he has filled in. The number of textboxes vary depending on a value that the...
7
by: Matt Kruse | last post by:
Using the .cellIndex property of a TH element to find out which table column it is over can cause misleading results when the table has cells which have rowspans or colspans greater than 1. See...
7
gchq
by: gchq | last post by:
Hi there Here is the situation - a table is built dynamically with values in the cells I need to retrieve and enter into a database. I have found a way of getting values using JavaScript, but of...
3
by: toffee | last post by:
Hi all, I got a pre-formatted spreadsheet. would it be possible using js to copy the data from a table on the current webpage, open the spreadsheet and paste the content ? if so, anyone got any...
9
by: RayDube | last post by:
Hello Gents, I want to be able to reward my members with credits, banner advertisements, text advertisements and even cash, but on a partially manual basis. I created a page where I could...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.