Help with IsPostBack property
-
I have a datagrid. In the datagrid,I have a CheckBox Column.When I click the checkBox that i need and click the button,the page gets refreshed and all the data that i checked goes off. Kindly help me where to give the IsPostBack property. Thanks in Advance.
Happy Programming!!!
-
I have a datagrid. In the datagrid,I have a CheckBox Column.When I click the checkBox that i need and click the button,the page gets refreshed and all the data that i checked goes off. Kindly help me where to give the IsPostBack property. Thanks in Advance.
Happy Programming!!!
In the load event, check if the page isPostBack...
-
I have a datagrid. In the datagrid,I have a CheckBox Column.When I click the checkBox that i need and click the button,the page gets refreshed and all the data that i checked goes off. Kindly help me where to give the IsPostBack property. Thanks in Advance.
Happy Programming!!!
-
I have a datagrid. In the datagrid,I have a CheckBox Column.When I click the checkBox that i need and click the button,the page gets refreshed and all the data that i checked goes off. Kindly help me where to give the IsPostBack property. Thanks in Advance.
Happy Programming!!!
I would say most likely you are refreshing you datagrid on pageload. So when you button posts back to the web service the page load event runs and you databind your datagrid with new data. So most likely you need to surround your existing code in your page load with if Not IsPostBack Then or if !IsPostBack { So that you only load the datagrid once, not every time the page posts back. Hope that helps. Ben
-
I would say most likely you are refreshing you datagrid on pageload. So when you button posts back to the web service the page load event runs and you databind your datagrid with new data. So most likely you need to surround your existing code in your page load with if Not IsPostBack Then or if !IsPostBack { So that you only load the datagrid once, not every time the page posts back. Hope that helps. Ben
My problem is solved now.Thanks to all 3 of You...God Bless U...:-D
Happy Programming!!!