0
This is the case. My Actionresult does a heavy database query and returns randomized data by business definition.
The user can refresh the screen. If you update the page, you lose what was done and the return of the query is another.
Does anyone know how to prevent running the link again or refreshing my Actionresult from running again?
Complementing. If I control via the session that the query has already been made, the return object of this Actionresult will be null. because it is initiated in this Actionresult obviously.
– Tiago
I don’t understand your question. It would be nice if you put part of the code to better understand yourself.
– Victor Stafusa
and if you save the result of the query to Session, and check, if it has resulted in Session returns it, if it does not execute the query ?!
– Rovann Linhalis