It seems Button Event is not getting fired when is generated dynamically in Grid
The Below Link has the details:
http://community.strongcoders.com/blogs/ryan/archive/2005/12/01/gridview-dynamic-button-frustrations.aspx
I faced similar issue as well and have to content with a Button in the aspx page to get around this problem
After sometime I understand the issue is u add anything dynamically to GridView’s Footer (or any other rows) after DataBound then u deem to loose it.
A heavy solution is available in the following url need to fully understand the code.http://www.codeproject.com/useritems/GridView_with_insert_line.asp
1 comment:
http://10stupidthings.wordpress.com/2007/07/18/gridview-and-dynamic-controls/
That solves the dynamic button losing its connection to its handler issue.
Simple and effective.
Post a Comment