user55474
user55474

Reputation: 537

Asp.net updatePanel refresh

HI I have an grid inside an updatePanel. When i select a row in the grid a postback happens. However i donot want to refresh the contents of the updatapanel. Is there anyway to stop the refresh of the contents after the postback completes

thanks

Upvotes: 0

Views: 1215

Answers (3)

Joel Coehoorn
Joel Coehoorn

Reputation: 415745

No. You will have to prevent the postback in the first place. Otherwise you are re-rendering the entire page, including the UpdatePanel. If you really need the server to do some work here, you might try calling a page method instead.

Upvotes: 2

Pragnesh Patel
Pragnesh Patel

Reputation: 1444

It depends on what you want to do at selection.

you can set Updatepanel postbackmode to Conditional instead of always.

Upvotes: 1

Ricardo Sanchez
Ricardo Sanchez

Reputation: 6289

Yes, setup the AutoPostback property to false in those controls where you don't want this to happen... for example your grid.

Upvotes: 0

Related Questions