Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing form properties to JavaScript
Message
 
À
24/10/2003 08:59:35
Jacci Adams
Lindsay-Adams Consulting
Louisville, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00842038
Message ID:
00842085
Vues:
17
Hi Jacci,

On pageload,for the number of the grid rows, after you bind the grid, assign the grid row count to a htmlinputhidden variable( an html hidden control declared with runat=server). Then you can access it on the client side via javascript.

Now, for the textboxes you have on the grid, I would suggest you use column templates. On ItemDataBound, get each control that you need( via FindControl) and get its ClientID.Once you get the clientID for all the controls you can build the call to the js you want by passing those clientIDs.

Hope it helps,

Vlad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform