Information générale
Titre:
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?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement