Click here to Skip to main content
16,020,974 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have 2 gridview in asp.Gridview ID=grid1 and grid2.
Both gridview contains column as checkbox,Name,Amount
i need total amount of selected checkbox from both gridview...
pls help me.........
Posted
Comments
Thanks7872 2-Dec-13 2:11am    
Why JavaScript?
Member 10339067 2-Dec-13 2:13am    
c# is in slow in server... so i need in javascript
Member 10339067 2-Dec-13 2:13am    
c# is in slow in server... so i need in javascript

1 solution

See these :

Gridview checkbox validation using javascript[^]

Check/uncheck CheckBox in a GridView using Javascript[^]

You have to modify the JavaScript function lil bit. Just count checked checkboxes till the end of GridView and return that.
 
Share this answer
 
v2
Comments
Thanks7872 2-Dec-13 2:26am    
Why such vague comments?
Member 10339067 2-Dec-13 2:26am    
checkbox Name Amount
[] lux 30
[] dove 40
[] pears 38
[] medimix 25
if select dove,pears it should show 78
Thanks7872 2-Dec-13 2:28am    
This is not how it works. You have to go through that Articles. Try to understand how it works and then you have to implement it your self.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900