.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Fragment Caching

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :ASP.Net

 Is fragment caching possible at client side or server side?

plz help


View Complete Post

More Related Resource Links

ASP.Net Caching problem ??


I'm having a problem with an asp.net 3.0 application using a gridview to display data.  The problem seems to be that despite a brand new .selectCommand being sent to the sqlDataSource, the gridview starts displaying data from *someone else's* query.  For example, user A is logged in and will be working fine until a few page submissions later when the gridview data starts suddenly showing information that belongs to another user. 

This is my first asp.net application, though I've been working with classic asp and ADO for years so I'm used to sending a SQL string and getting back the results from that string.  Apparently there is a complex caching system which is interferring which I do not at all understand so at this point I just want to stop the server from caching any data whatsoever.  Is this possible?

Any and all help will be much appreciated!!

is the page caching?


I am just trying to understand the basics flow to the MVC framework by putting in some breakpoints in the beginning of the actions of a couple of controllers.

One break point is at the HomeController/Index action where it just returns View() of the "Welcome to MVC".  The Second break point is at a SecondController/Index action where it uses the Entity Framework and returns a View() of a list from the db.

When I run this in debug, it breaks at the points I expected when I go from Home page to the Second page controller and back to Home.  However, when I go to the Second page again, it doesn't break at all?  Is the results of the Second page being cached and how and where?  How do you trigger for it to get check if data is old?

I check to see if the persistence is done on the db, by changing the value of a field on the db side and it still did not cause it to break on that action and displays old information in the view.  I am concerned because it is displaying incorrect values on the UI.  I do not have the OutputCache attribute above this action or specified any cache on my web.config.

Thanks in advance for your time :)

Data caching c#.net


Hi Friends,


I have a large SQL Database in the server from which I can create a dataset of about 10000 rows. My question is about caching this data. Which type of data caching should I choose (Server side or Client side)? Which one will provide better performance?


Thanks in advance

SOA Tips: Address Scalability Bottlenecks with Distributed Caching


SOA makes application scalability easier, but getting the best performance out of your SOA means paying close attention to the details. We'll give you some tips for coding your app more effectively and using distributed caching to remove data access bottlenecks.

Iqbal Khan

MSDN Magazine June 2010

Toolbox: Distributed Caching, Object-Object Mapping, Blogs and More


This column covers Web application performance with distributed caching, a utility for object-object mapping, and a look at interesting blogs.

Scott Mitchell

MSDN Magazine September 2009

Scale Out: Distributed Caching On The Path To Scalability


Developers frequently face issues related to scalability bottlenecks when they have applications that need to handle a lot of load. This article describes the role of a distributed cache in building scalable applications.

Iqbal Khan

MSDN Magazine July 2009

Velocity: Build Better Data-Driven Apps With Distributed Caching


Microsoft Velocity exposes a unified, distributed memory cache for client application consumption. We show you how to add Velocity to your data-driven apps.

Aaron Dunnington

MSDN Magazine June 2009

Toolbox: Manage databases, easier FTP, and clustered caching


This month's products include DatabaseSpy, FileZilla, NCache, and more.

Scott Mitchell

MSDN Magazine October 2007

Web Farms: Use Data Caching Techniques to Boost Performance and Ensure Synchronization


Performance is an important concern for any application, but becomes critical when the app is a Web Service accessed by thousands of clients simultaneously. One hardware approach to distributing Web Services requests evenly is a Web farm consisting of multiple servers. Once on a Web farm, Web Service performance can be improved by using ADO.NET DataSet objects to cache frequently accessed data, reducing round-trips to the database. Here the author describes data caching in a Web farm environment and discusses how to avoid the cross-server synchronization problems inherent in this approach.

David Burgett

MSDN Magazine December 2002

pre caching


i have a website named 'bizlis.com'which  i have built a website  in asp.net 2.0 with sql 2005 database.it is a database search engine which searches buyers and sellers all around the world....
when user enters url 'bizlis.com'.my home page opens .loading time of home page is fast.homepage has ..
 user has to  select country from dropdown box,he selects category from dropdown(buyer/seller)he then selects a criteria from dropdown(exact phase search,anyword search or all word search) after that he enter product name in the textbox which he wants to search ...after that searching is done ..the problem is that my searching for the first page takes very long time it takes 8-10 seconds (try searching for steel sellers from india as it has maximu records)..after first page is loaded in 9-10 sec ..then 50 records are shown .it has navigation button on click of next navigation button data comes faster as compared to loading(starting first page-which brings data for the first time ) page.this is because cahing is applied...

hence now my biggest problem is that how to make my first datapage fast(starting first page-which brings data for the first time)

some of my friends told me to apply pre caching

i can do it in 2 ways

1.either by load

Need help with partial page caching


I have a banner on the master page that I don't want cached even though some of the content pages are cached.  I'm using the adrotator control, which I know doesn't cache, but I have code in the AdCreated event, and that does cause it to cache.

I've been struggling with this for several days now.  I've tried putting the code in another page and using an iframe to display it.  This worked except at times what got displayed was the headers of a page within a page withing a page.  This would mysteriously come and go, but when it happened, it would crach browsers and it looked terrible. 

I'm thinking of using ajax, but I don't already have a scriptmanager control on the master page.  Before I remove the scriptmanager control from all the content pages, I'd like to try to use partial page caching.  I've Googled it, but I don't understand what I've read.  CAn someone simplify this for me?

ASP.NET caching headers not coming thru in IIS 6 (but are just fine in dev, which is XP's IIS 5.1

   I have some headers I am stuffing in an ASP.NET httphandler.. They work great in our XP dev environment (IIS 5.1) but on our clients prod boxes (IIS 6.0 running SSL) we aren't getting them.. Below is more detail. Offending Code: context.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1));  context.Response.Cache.SetValidUntilExpires(false);  context.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);  context.Response.Cache.SetCacheability(HttpCacheability.NoCache);  context.Response.Cache.SetNoStore();   on our dev machines (sadly XP so IIS 5.1) the headers I get back are exactly what I want Server: Microsoft-IIS/5.1  Date: Fri, 27 Aug 2010 15:17:40 GMT  X-Powered-By: ASP.NET  X-AspNet-Version: 2.0.50727  Transfer-Encoding: chunked  Cache-Control: no-cache, no-store, must-revalidate  Pragma: no-cache  Expires: -1  Content-Type: application/xml; charset=utf-8    But when I take the same code and run it in production (IIS 6.0 and over SSL) the headers are not coming across correctly at all. Date Fri, 27 Aug 2010 14:59:02 GMT  Server Microsoft-IIS/6.0  mn 1c  X-Powered-By ASP.NET  X-AspNet-Version 2.0.50727  Transfer-Encoding chunked  Cache-Control private  Content-Type application/xml; charset=utf-8  Anyways ideas would be awesome Thanks

Dataview Web Part - Caching issue

Hello, I would like to know if this is a bug or the intended behaviour of the dataview webpart when used on a calendar list. I created a calendar with a view that expands recurring appointments. I then used this view in a DVWP to show a rollup of events happening soon. My query was similar to this <Where> <DateRangesOverlap> <FieldRef Name="EventDate"/> <FieldRef Name="EndDate"/> <FieldRef Name="RecurrenceID"/> <Value Type="DateTime"> <Now/> </Value> </DateRangesOverlap> </Where> This allowed my web part to expand recurring appointments so that they were displayed correctly. My web part then worked correctly the first time the page was loaded, but showed incorrect data on subsequent page loads. I determined that when the page was refreshed, it was no longer expanding recurring appointments. I found later that by turning off data view caching in the webpart, this issue went away. My question then is, why does the web part use an different (and incorrect) query to cache its data. Why does it not use the query set out in the web part to cache the data that it returns the first time. Is this a bug in the DVWP or is it intended to work like this (and then why)? Thank you

Caching multiple copies of a page

Hi Guys, I have  an aspx page that retrieves and processes an image based on a  query string.The whole operation takes about 2-3 seconds.  However as the nature of the images means they are quite static,a 5 min (or even 5 hour) delay in picking up an updated image is acceptable. Because of this delay I would like to cache the response and only do a proper refresh only periodically. I have added the following to the top of my aspx page.  <%@ OutputCache Location="Any" Duration="600" VaryByParam="*" %> Only the last request appears to be cached - i.e. f  I navigate to ../DisplayImage?ImageId=1Then the page is loaded and Image 1 displayed - subsequent requests are cached.If I navigate to ../DisplayImage?ImageId=2 subsequent requests are cached.However if I go image 1, image 2, image 1 then no caching occurs. I'm wondering if i'm missing something obvious or does IIS7 / ASP.NET just not support this type of caching.Any help would be greatly apreciated.Malachy
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend