Wrox Programmer Forums
Forum and Wrox.com Feedback Post your suggestions for improving the Forums or Wrox.com or questions for the staff here. "Where can I find the code for my book?"
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Forum and Wrox.com Feedback section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 8th, 2008, 08:53 AM
Authorized User
Join Date: Jan 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Harjinder
Default Remove Page from Cache

Hi All

here is my Code
<head runat="server">
    <title>Untitled Page</title>
    <script language="javascript" type="text/javascript">
    function MYAJJX()
        var MYOBJ;

            MYOBJ=new XMLHttpRequest();

                MYOBJ=new ActiveXObject('msxml2.XMLHTTP');

                     MYOBJ=new ActiveXObject('Microsoft.XMLHTTP');
                      alert('NO Suuport');


// alert(MYOBJ.responseText);

                document.getElementById('lbl1').innerHTML=MYOBJ.re sponseText;

    <form id="form1" runat="server">
    <%--<asp:Button ID="btn" OnClientClick="MYAJJX()" runat="server" Text="Click" />--%>
    <input type="button" value="Click" onclick="MYAJJX()" />
      <asp:Label ID="lbl1" runat="server" />

This works absolutely fine.
My Query is when i click first time it retrieve information from page without posting back. But Second click doesn't work. So it keep my page is cache and retrieve information from that and don't give me new value.
Please tell me how to solve this problem


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Cache Issue itHighway HTML Code Clinic 2 August 7th, 2005 10:37 PM
Cache certain portions of web page itHighway Classic ASP Basics 2 April 21st, 2005 01:14 AM
Accessing page contents from browser cache baburman .NET Framework 2.0 3 February 10th, 2005 02:42 AM
Accessing page contents from browser cache baburman General .NET 0 December 6th, 2004 01:44 AM
Output page cache question flyin General .NET 0 September 11th, 2004 04:38 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.