How to keep a value in cache memory
===

I was trying to capture a boolean value in aspx.vb file and I want to use it in global.asax page. Please could any one suggest how can I achiev it?  
  
please help  
**Applicaion.aspx.vb**  

    Public Class Testing
        Shared _cache As Cache = Nothing
        Protected Sub Method()
        Dim allSelection As Boolean
                'Checking to see what radio button selected option.
                If (rdoallSelection.SelectedIndex = 0) Then
                    allSelection = True
                Else
                    allSelection = False
                End If
        
                _cache.Insert("allSelection", allSelection, New CacheDependency("C:\AspNetSql\Quotes.Quotations"), Cache.NoAbsoluteExpiration, Cache.NoSlidingExpiration, CacheItemPriority.[Default], onRemove)
      End Sub
    End Class

  
**Global.asax**
        
    Dim allSelection As Boolean = Cache["allSelection"]  
    If allselection is True  then  
    'Do somethign  
    else  
    'Nothing  
    End If
    
      








