473,791 Members | 3,275 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1746
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.innertex t = "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*******@yaho o.com> wrote in message
news:ed******** ******@TK2MSFTN GP10.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.innertex t = "some text"

HTH,
Bob Barrows

Jul 19 '05 #3
Larry Woods wrote on 20 sep 2003 in
microsoft.publi c.inetserver.as p.general:
"Bob Barrows" <re*******@yaho o.com> wrote in message
news:ed******** ******@TK2MSFTN GP10.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.innertex t = "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
11310
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 dynamically. I create a html table Time | Data1 | Data2 | Data3 type, in which the columns are not fixed, hence i am building it dynamically in c# code. now after i have the html table in the webpage, I want to give user to
3
5293
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 with text, and in each row, there 's atextBox (with an incremental ID number) in witch the user canenter a number of products. When the user clicks on the "Submit"button, I must know witch row he has selected, AND WITCH NUMBERHE HAS ENTERED in the...
7
2197
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 another. I have tried declaring them as shared, public, friend, etc and I always get an error stating that something is not valid on a local variable declaration. For example, in the following code for Sub DataGrid_Select, I have CurrentID and...
0
1003
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. Any text that I try to apply to the other cells is ignored when the page is viewed. An example of the code is listed below. All help is greatly apprediated. Gregg
5
1709
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 user filled in in another page. But suppose there were 3 values. In that case, I know the names of the fields, they are MyTextBox1 MyTextbox2 MyTextbox3
7
7625
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 example: http://www.javascripttoolbox.com/temp/table_cellindex.html (code pasted below for reference) This behaves according to specs and expectations, however the value of the cellIndex property becomes less useful when using it to determine...
7
21484
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 course with the table being dynamic I have no idea how many rows it will contain. One way is using the TableID.rows.count and then building if statements based on the value - but that is going to be an awfull lot of coding...... So the question is -...
3
16012
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 links or pointers? i've already tried google - but all i get is ActiveX methods which work in a very few cases.
9
1868
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 decide how many members would get a reward, and then update them based on the member id and details I enter, here's the code for the page: <?php /** * @author Raymond Dube * @copyright 2008
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10428
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10156
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9997
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5435
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.