Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing form properties to JavaScript
Message
From
24/10/2003 08:59:35
Jacci Adams
Lindsay-Adams Consulting
Louisville, Ohio, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Passing form properties to JavaScript
Miscellaneous
Thread ID:
00842038
Message ID:
00842038
Views:
66
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
Map
View

Click here to load this message in the networking platform