Click here to Skip to main content
15,897,226 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ASP.NET+Javascript Pin
Christian Graus19-Jun-07 0:57
protectorChristian Graus19-Jun-07 0:57 
GeneralRe: ASP.NET+Javascript Pin
Bajrang Singh19-Jun-07 2:12
Bajrang Singh19-Jun-07 2:12 
QuestionConfiguring application in 3-tier Pin
Sylvester george18-Jun-07 23:41
Sylvester george18-Jun-07 23:41 
QuestionGoogle Base API Pin
wEb GuRu...18-Jun-07 23:30
wEb GuRu...18-Jun-07 23:30 
Questionrefreshment of page Pin
saravanan0518-Jun-07 23:09
saravanan0518-Jun-07 23:09 
AnswerRe: refreshment of page Pin
wEb GuRu...18-Jun-07 23:25
wEb GuRu...18-Jun-07 23:25 
AnswerRe: refreshment of page Pin
MaheshSharma19-Jun-07 0:10
MaheshSharma19-Jun-07 0:10 
Questionusercontrol caching Pin
marky77718-Jun-07 23:07
marky77718-Jun-07 23:07 
Hi.

I need to cache a usercontrol on a page.

I have tried:
<%@ OutputCache Duration = "100" VaryByParam="none" %> in the design of the UC.

And it gives the OBJECT NOT SET TO AN INSTANCE... error on the container page when i try to reference the UC.
I have also tried:
Response.Cache.SetExpires(DateTime.Now.AddSeconds(100));<br />
 Response.Cache.SetCacheability(HttpCacheability.Public);


in the page load of the usercontrol.

In the container page code i try:
if (UCarticles1.CachePolicy.SupportsCaching)<br />
    {<br />
      UCarticles1.CachePolicy.Duration = new TimeSpan(0,0,20);<br />
    }


But I get the value of false from the if statement.

Can someone help me please? What am I doing wrong?

Thanks for your help.Blush | :O
AnswerRe: usercontrol caching Pin
Chetan Ranpariya18-Jun-07 23:27
Chetan Ranpariya18-Jun-07 23:27 
GeneralRe: usercontrol caching Pin
marky77718-Jun-07 23:36
marky77718-Jun-07 23:36 
GeneralRe: usercontrol caching Pin
Chetan Ranpariya18-Jun-07 23:52
Chetan Ranpariya18-Jun-07 23:52 
GeneralRe: usercontrol caching Pin
marky77719-Jun-07 0:10
marky77719-Jun-07 0:10 
GeneralRe: usercontrol caching Pin
Chetan Ranpariya19-Jun-07 0:14
Chetan Ranpariya19-Jun-07 0:14 
GeneralRe: usercontrol caching Pin
marky77719-Jun-07 0:50
marky77719-Jun-07 0:50 
AnswerRe: usercontrol caching Pin
Nouman Bhatti19-Jun-07 1:52
Nouman Bhatti19-Jun-07 1:52 
QuestionHow can we use multiline and New line character in asp.net Pin
Hemant Garg18-Jun-07 22:40
Hemant Garg18-Jun-07 22:40 
AnswerRe: How can we use multiline and New line character in asp.net Pin
wEb GuRu...18-Jun-07 23:28
wEb GuRu...18-Jun-07 23:28 
QuestionCode failed to validate username Pin
ASPnoob18-Jun-07 21:50
ASPnoob18-Jun-07 21:50 
AnswerRe: Code failed to validate username Pin
Chetan Ranpariya18-Jun-07 21:56
Chetan Ranpariya18-Jun-07 21:56 
GeneralRe: Code failed to validate username Pin
ASPnoob18-Jun-07 22:07
ASPnoob18-Jun-07 22:07 
AnswerRe: Code failed to validate username Pin
Chetan Ranpariya18-Jun-07 23:17
Chetan Ranpariya18-Jun-07 23:17 
AnswerRe: Code failed to validate username Pin
szukuro18-Jun-07 22:30
szukuro18-Jun-07 22:30 
QuestionItemInserted event & formview communication Pin
aitch4218-Jun-07 21:37
aitch4218-Jun-07 21:37 
Questionhow to get item template Pin
srinivassam18-Jun-07 21:31
srinivassam18-Jun-07 21:31 
AnswerRe: how to get item template Pin
Tarik Guney18-Jun-07 22:15
Tarik Guney18-Jun-07 22:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.