ajax update panel
-
hi, i am using master page. i use page using master page in this page there are two content place holder one for datagrid and second for panel add,edit,delete, info. and in datagrid there are info, edit, delete image button. when i click on edit image button than open edit panel which exists in second content place holder and fill that from database previous values. when i edit on fields and than click on save button i want that page will not refresh and value is edited in database and also in gridview. how i can do this? update panel cant place outside the both content place holder because this page is from mater page. :-D
I will do my best?
-
hi, i am using master page. i use page using master page in this page there are two content place holder one for datagrid and second for panel add,edit,delete, info. and in datagrid there are info, edit, delete image button. when i click on edit image button than open edit panel which exists in second content place holder and fill that from database previous values. when i edit on fields and than click on save button i want that page will not refresh and value is edited in database and also in gridview. how i can do this? update panel cant place outside the both content place holder because this page is from mater page. :-D
I will do my best?
Update panel is evil. If you can avoid using it, please do. Can you please explain more clearly what you are trying to do?
-
Update panel is evil. If you can avoid using it, please do. Can you please explain more clearly what you are trying to do?
thanks to reply :-D problem is that i want to refresh datagrid control which is also in updatepanel and this control is in contentplaceholder1. and when i open edit panel which is open in new contentplaceholder2 when edit data datagrid is not refreshed while work is done. when i click on that contentplaceholder1 dropdownlist then datagrid is update. how to refresh without refresh the page.(using ajax)
I will do my best?
-
thanks to reply :-D problem is that i want to refresh datagrid control which is also in updatepanel and this control is in contentplaceholder1. and when i open edit panel which is open in new contentplaceholder2 when edit data datagrid is not refreshed while work is done. when i click on that contentplaceholder1 dropdownlist then datagrid is update. how to refresh without refresh the page.(using ajax)
I will do my best?
UpdatePanel != Ajax. Your best bet is probably to combine the Datagrid and Edit controls in the same UserControl. If you keep your current model, one thing you could try is to put a hidden button on the UC with the datagrid. On the server side, when that button is clicked, refresh the grid. Then when the edit controls should update the grid, have JavaScript programmatically click the hidden button on the datagrid UC.