Hi Tal88,
tal88:
since I would like to check if there was a chage in the table every 30 sec but don't want to re-render the whole table if there wasn't any change,
I can use two UpdatePanels, one of them will contain the GridView , the second will contain the ajax Timer. on tick event
it will check if the table needs to be updated. if data on GridView needs to be refreshed call the Update method of UpdatePanel.
Use UpdatePanel in your situation is a easy way, but not a efficient solution.If we care much about the perfermance, WebService is preferred.
UpdatePanel posts back all the elements include the ViewState and returns all but only refresh the content inside the UpdatePanel. So I don't think we should add two UpdatePanels.
Now ,I think the best way is use WebService + UpdatePanel. WebService will check whether there's something new should be rendered to the client. It will return ture or false. If true , we force the UpdatePanel be refreshed by using doPostBack("UpdatePanel.ClientID",''); Otherwise , we don't need to update its content.So in this solution, the UpdatePanel refreshes only when it need to be instead of every 30 second.
tal88: A circular reference was detected while serilizing an object of type 'System.Reflection.Module'
Please double check your code. Mines works fine locally. If it doesn't work, you can down load the sample here.
Hope this helps.
Best regards,
Jonathan