C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

Will caching works on same page


Posted Date: 16 Dec 2008      Posted By: Kranthi Kiran      Member Level: Silver     Points: 1   Responses: 2



Hi

I am having one gridview and textbox(not in gridview) in a page.
and i set <%@ OutputCache Duration="60" VaryByParam="*" %>

When i select particular record from gridview data is displaying in textbox,
but every time data is fetching from server.
I want to fetch data from cache memory not from server. How to solve this problem.



Thanks in advance,
Kranthi





Responses

Author: Rahul Anand    16 Dec 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 3

Store the data in the Cache Memory so that i can extract the record from the cache memory nect time......It creates problem when it does not have anything in the cache memory to show......try this.
Store the GridView selected data in the cache memory then on the Gridview selection check the cache memory that It has something to show or not....If it has then show it......



Author: shobhit rai    16 Dec 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

hello it is because data is changing every time
still u eant then use
<%@ OutputCache Duration="60" VaryByParam="none" %>
but this will not change ur data



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : TabContainer and validation
Previous : show Processing image
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use