Click here to Skip to main content
15,885,925 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,
I have created runtime tabpanel of ajax

Inner that tab panel i have generate the gridview runtime and in that gridview i have generate the checkbox dynamically.

Now i want to do that on submit button click i want that all data of gridview and checkbox but
i got error of null reference.

I want to do on button click all that control back but unfortunetly that i can't get.


Please help or guide me if you have any idea.


Thanks a lot in advance for read the article.
Posted
Comments
Hardeep Saggi 17-Mar-15 2:18am    
Could you please paste your java-script code used for finding an element ?

1 solution

As of jQuery 1.7 you should use jQuery.fn.on
JavaScript
$(staticAncestors).on(eventName, dynamicChild, function() {

// Submit logic goes here

});
 
Share this answer
 
Comments
jigish shah 17-Mar-15 3:13am    
Thanks a lot for postitive reply.
But i want to do this on button click i want that dynamic controls value
Hardeep Saggi 17-Mar-15 3:20am    
That button is already in dom object while page render's ?

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