Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing form properties to JavaScript
Message
De
24/10/2003 08:59:35
Jacci Adams
Lindsay-Adams Consulting
Louisville, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Passing form properties to JavaScript
Divers
Thread ID:
00842038
Message ID:
00842038
Vues:
68
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
Fil
Voir

Click here to load this message in the networking platform