Hi
i use to Telerik trial version 2010.3.1109.35
I want to sample is RadGrid in User Control and User Control in OutputCache ( <%@ OutputCache Duration="10" VaryByParam="none"%>)
RadGrid is create in the code behind
I am could not find this example in the Telerik Site or Forum :(
very important :(
please regards;
Thanks.
i use to Telerik trial version 2010.3.1109.35
I want to sample is RadGrid in User Control and User Control in OutputCache ( <%@ OutputCache Duration="10" VaryByParam="none"%>)
RadGrid is create in the code behind
I am could not find this example in the Telerik Site or Forum :(
very important :(
please regards;
Thanks.
3 Answers, 1 is accepted
0
Hi Goksel,
I am sending you a simple example which demonstrates the desired functionality. Please check it out and let me know if it helps you.
Also please check out the following online resources:
http://www.telerik.com/support/kb/aspnet-ajax/general/how-to-use-telerik-web-ui-components-in-a-user-control-with-outputcache.aspx
http://www.telerik.com/support/kb/aspnet-ajax/general/error-telerik-is-undefined-when-using-outputcache-directive-in-a-user-control.aspx
I hope this helps.
Kind regards,
Radoslav
the Telerik team
I am sending you a simple example which demonstrates the desired functionality. Please check it out and let me know if it helps you.
Also please check out the following online resources:
http://www.telerik.com/support/kb/aspnet-ajax/general/how-to-use-telerik-web-ui-components-in-a-user-control-with-outputcache.aspx
http://www.telerik.com/support/kb/aspnet-ajax/general/error-telerik-is-undefined-when-using-outputcache-directive-in-a-user-control.aspx
I hope this helps.
Kind regards,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0

goksel
Top achievements
Rank 1
answered on 17 Dec 2010, 07:24 PM
this example is not working.
i am delete RadStyleSheetManager after is working this radgrid, but allowpaging true is not working this example.
this example is a check out please.
you are send me a new example, but it is working please.
i want to allowpaging is true.
very important this outputcache in user control .
Kind regards,
Goksel
thanks.
i am delete RadStyleSheetManager after is working this radgrid, but allowpaging true is not working this example.
this example is a check out please.
you are send me a new example, but it is working please.
i want to allowpaging is true.
very important this outputcache in user control .
Kind regards,
Goksel
thanks.
0
Hello Goksel,
The output caching, caches the HTML output of dynamic requests to ASP.NET Web pages. The way ASP.NET implements this (roughly) is through an Output Cache engine. Each time an incoming ASP.NET page request comes in, this engine checks to see if the page being requested has a cached output entry. If it does, this cached HTML is sent as a response; otherwise, the page is dynamically rendered, it's output is stored in the Output Cache engine.
Output Caching is particularly useful when you have very static pages.
The Duration parameter specifies how long, in seconds, the HTML output of the Web page should be held in the cache. When the duration expires, the cache becomes invalid and, with the next visit, the cached content is flushed, the ASP.NET Web page's HTML dynamically generated, and the cache repopulated with this HTML. The VaryByParam parameter is used to indicate whether any GET (QueryString) or POST (via a form submit with method="POST") parameters should be used in varying what gets cached. In other words, multiple versions of a page can be cached if the output used to generate the page is different for different values passed in via either a GET or POST.
So into the example which I sent you, if you enable paging of the RadGrid it will not work because every time when you navigate to the new page the engine checks to see if the page being requested has a cached output entry and if the cached output exists it returned it as HTML. So you could perform paging on every 10 seconds (the Duration parameter).
More information about output caching you could find on the following link:
http://msdn.microsoft.com/en-us/library/ms972362.aspx
Kind regards,
Radoslav
the Telerik team
The output caching, caches the HTML output of dynamic requests to ASP.NET Web pages. The way ASP.NET implements this (roughly) is through an Output Cache engine. Each time an incoming ASP.NET page request comes in, this engine checks to see if the page being requested has a cached output entry. If it does, this cached HTML is sent as a response; otherwise, the page is dynamically rendered, it's output is stored in the Output Cache engine.
Output Caching is particularly useful when you have very static pages.
The Duration parameter specifies how long, in seconds, the HTML output of the Web page should be held in the cache. When the duration expires, the cache becomes invalid and, with the next visit, the cached content is flushed, the ASP.NET Web page's HTML dynamically generated, and the cache repopulated with this HTML. The VaryByParam parameter is used to indicate whether any GET (QueryString) or POST (via a form submit with method="POST") parameters should be used in varying what gets cached. In other words, multiple versions of a page can be cached if the output used to generate the page is different for different values passed in via either a GET or POST.
So into the example which I sent you, if you enable paging of the RadGrid it will not work because every time when you navigate to the new page the engine checks to see if the page being requested has a cached output entry and if the cached output exists it returned it as HTML. So you could perform paging on every 10 seconds (the Duration parameter).
More information about output caching you could find on the following link:
http://msdn.microsoft.com/en-us/library/ms972362.aspx
Kind regards,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.