Mar 04, 2009, 10:22 PM
How to update a asp.net gridview in ajax callback?
Dear Sir:
I need read data from database without a static json format. For example,I read tree tables from database in a common programe .So, a static json format isn't fit to me.a common asp.net gridview with sql can do this.but,I have a poblem in coolite button ajax callback :the asp.net gridview can't refresh .
my code like this:
</PRE> protected void myajaxCallback(object Sender,AjaxEventAgrs e){</PRE> this.odsGrid.whereClause="select * from tb_test";</PRE> this.gridview1.databind();</PRE>}</PRE>
</PRE>in face ,the gridview1's content is uploaded.but the UI isn't update!How to update the UI?I'm use a anthem.net gridview.</PRE>thanks</PRE>