G
Guest
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
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