how to get checkbox checked in a grid view after page post
-
In my application.I have used a gridview and in the header of a particular column of that gridview I have used checkbox.In the checkchanged event of the checkbox some database query executes.It is working but the problem is after the page post the checkbox gets unchecked.But I want that the checkbox remain checked.How can it be achieved.
-
In my application.I have used a gridview and in the header of a particular column of that gridview I have used checkbox.In the checkchanged event of the checkbox some database query executes.It is working but the problem is after the page post the checkbox gets unchecked.But I want that the checkbox remain checked.How can it be achieved.
Are you re-initializing the checkbox when page is posted back... You should block the initialization inside
if(!IsPostBack)
block . :)Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Microsoft Bing MAP using Javascript
CLR objects in SQL Server 2005
Uncommon C# Keywords/xml> -
Are you re-initializing the checkbox when page is posted back... You should block the initialization inside
if(!IsPostBack)
block . :)Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Microsoft Bing MAP using Javascript
CLR objects in SQL Server 2005
Uncommon C# Keywords/xml>No i am not initialising it. And i am also forcefully checked the checkbox before databind method.But still it is not working.