innertext, javascript, datagrid, database update
- From: Lyners <Lyners@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 19 Aug 2005 10:45:12 -0700
I have a web page writen in ASP.NET that contains some javascript so that
when a user presses a button, or edits a certain field in a datagrid, another
cell in the datagrid is filled with a value.
My probelm.... when I have the user press the update button (which does a
post back that loops through the datagrid and updates a database) the
field/cell that is filled by the javascript appears to be blank in my update
code, even though I can see it on the screen.
My java script code that populates the desired cell (this works);
function AddRequesterName(imgObj)
{
imgObj.parentNode.parentNode.childNodes(8).innerText=UserName.outerText;
}
My code in the VB.NET that updates the database;
Dim strEntryID As String = dgi.Cells(11).Text
This works for all the other fields in the grid, except this one? The reason
why it is cell(11) is because there are 3 hidden cells in the display.
I have a felling it has something to do with innertext and referencing
cell.text, but the cells attribute doesn't have an innertext.
Any help on this?
Lyners
.
- Follow-Ups:
- RE: innertext, javascript, datagrid, database update
- From: Phillip Williams
- RE: innertext, javascript, datagrid, database update
- Prev by Date: Re: Dropdown list bug
- Next by Date: Question about Visual Web Developer 2005 Express Edition
- Previous by thread: Problems with dataset and dataadapter
- Next by thread: RE: innertext, javascript, datagrid, database update
- Index(es):