In code :
Response.Cache.SetCacheability(HttpCacheability.No Cache)
Someone recently reported doing this globally, for all pages, by modifying
the global.asax.cs file, adding SetCacheability(HttpCacheability.NoCache)
in the Application_BeginRequest event.
Per page :
<%@ OutputCache Location="None" %>
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
"Por Belmstedt" <po***********@framfab.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Yes, but how does that help me? The control that is repopulated on postback
is an
<asp:TextBox Runat=server></asp:TextBox>
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:OK****************@TK2MSFTNGP14.phx.gbl... Are you aware of IsPostBack property?
Eliyahu
"Por Belmstedt" <po***********@framfab.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... >
> How do I disable postback repopulation of non-viewstate controls, such as > normal textboxes etc? (Surely there must be a more elegant solution than > manually clearing them on page load...)
>
>