۲۰-دى-۱۳۸۵, ۰۹:۴۷:۴۱
من به این شکل از cahe استفاده می کنم این کد را داخل رویداد کلیک یک button گذاشتم
If Context.Cache("ch") Is Nothing Then
Context.Cache.Insert("ch", "ffff", Nothing, DateTime.Now.AddSeconds(3600), New TimeSpan(0))
Else
Dim s As String = Context.Cache("ch")
End If
ولی جواب نمی دهد یعنی هیچ وقت به جمله بعد از else نمیرود البته اوایل کار می کردContext.Cache.Insert("ch", "ffff", Nothing, DateTime.Now.AddSeconds(3600), New TimeSpan(0))
Else
Dim s As String = Context.Cache("ch")
End If