Regarding AJAX

A

aroraamit81

I am using AJAX, it works very fine..............

But the problem is my back end aspx page does not get refreshed rather
it picks old values now when I execute the aspx page explictly then the
out put on my page(where AJAX code has been written) gets
reflected.....

What could be done......

Any Idea...
 
A

aroraamit81

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......
 
M

Michel de Becdelièvre

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%>
 
A

aroraamit81

Thanks Budddy

It worked out finallly by following line.........

<%@ OutputCache Duration="1" Location="None"
VaryByParam="Action;NvvCode" %>
 

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

Forum statistics

Threads
473,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top