General information
Title:
Passing form properties to JavaScript
Hi,
I'm not sure I'm asking this correctly, but here goes:
I have a form that has a datagrid on it. I need to capture how many rows get loaded into the datagrid then pass this number to a JavaScript function. I also need to pass the names of each textbox in the grid to a different JavaScript function. The grid textboxes have ID's that look like this: datagrid1__ctl2_txtFormFieldValue, datagrid1__ctl3_txtFormFieldValue.
I've tried creating a property (GridRows) in the code behind that holds this value. My JavaScript code looks like this:
var totalRows = document.form1.GridRows
It doesn't recognize it. I know this because the function where I try to use totalRows returns an error.
TIA,
Jacci
ps - what are the tags the UT uses to show lines of code in the white box?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only