<ar*********@gmail.com> a écrit dans le message de news:
11**********************@i40g2000cwc.googlegroups. com...
How would it help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
My simple question is my AJAX code picks up the old page rather than
new upodates page, is tere any way by which my aspx page does not get
stored into cache......
Lacking specifics on your problem, I thought you had a viewstate
consistency problem (most common problem with ASP.Net and Ajax).
MagicAjax handles correctly postback, viewstate and validation, for the
full page or only a handfull of controls, at your choice. This should take
care of most Ajax - ASP.Net related troubles. (I'm using both MagicAjax and
handcrafted javascript for Ajax).
If you are only having a caching problem, for full page download, you
can try OutputCache (the VaryByParam I'm setting may be overkill) :
<%@ Page Language="C#" CodeFile="AjaxPara.aspx.cs"
Inherits="Pgl.PAC.ParaInfo.AjaxPara" %>
<%@ OutputCache Duration="1" Location="None" VaryByParam="Action;NvvCode" %>
<%=resultat%>