Gridview Select Button doesn't work with OUTPUTCache

P

Pavans

Friends,

I have web page with gridview... The gridview row selection works fine
(with buttonfield for select) .. but as soon as I add

<%@ OutputCache Duration="600" SqlDependency="TableName"
VaryByParam="none" %>

The select event fires just once on the page and then it doesn't select
anyother row subsequently..

Any workarounds to have "select" work as desired with Output Cache on?

thanks
Pavans
 
B

Brock Allen

Set the VaryByParam directive to be the post variable that causes a different
rendering of the page. This will cause the caching to maintain many cached
copies of the page based upon that post variable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top