You can add an atlas:UpdateProgress to your page and inside of the ProgressTemplate if you put
<inputid="abortButton"type="button"value="Stop"runat="server"/>
It will cancel the update from happening. However if the updatepanel is being invoked that means that the dataview control is forcing a postback. What is it that you are doing by selecting a gridview row? The other option is just set the ScriptManager attribute EnablePartialRendering="True" and then don't put an UpdatePanel around the gridview control and it will do a normal postback. If you don't want to use viewstate then just set EnableViewState="False" on the GridViewControl. You just have to make sure you are rebinding the data every time an event is fired... and passing the proper parameters through the event so that the data changes that way you want it to.
JoeWeb
I have several updatepanels at the website which were updated depending on triggers. What m I doing with the gridview. I press a button in a different updatepanel (Panel1), which causes the gridview to display in Panel2. So I transfer about 100K data to it. Then I select a row in the gridview - like in Master/Detailview - do some calculation and show the result via a different updatepanel (Panel3).
Selecting a row the gridview forces a postback. If I had viewstate enabled, 100K are also transferred to the server, so I disabled it. Now I calculate the result. for that I just need the row number from the grid, which can easily get obtained.
What happens in terms of updating:
1. Panel1 remains as it is, because it is not invleved in the process.
2. Panel3 get updated, because it was triggered by the Gridview.
3. Panel2 also gets updated, because it seems to be an automated process, that an updatepanel, which issued a postback, will get updated also, even if there is nothing to change. If I do nothing, the griwview disappears, so I have to rebind it and transmit the 100K again.
Since the server knows, that there is no need to update it, I would just like to say, don't update. That's all.
The abortButton does not work for me, because I can't expect that a user knows the internal of the application.
 
No comments:
Post a Comment