Iron Speed Technical Forums
Register Latest Topics
 
 
 


Reply
  Author   Comment   Page 2 of 2      Prev   1   2
cpet

Registered:
Posts: 84
Reply with quote  #16 
using VB. Don't see any Using statements. Is there a way to turn it into vb?
alant

Registered:
Posts: 51
Reply with quote  #17 
Use one of the online code converters e.g.
http://codeconverter.sharpdevelop.net/SnippetConverter.aspx

This converts the code to:
Code:
Dim cacheKey As String = "AirportCodes"

itemValues = DirectCast(Me.Page.Cache(cacheKey), ALNAirportCodesRecord())
If itemValues Is Nothing Then
    itemValues = ALNAirportCodesTable.GetRecords(wc, orderBy, pageNum, maxItems)
    Me.Page.Cache.Insert(cacheKey, itemValues, Nothing, Cache.NoAbsoluteExpiration, TimeSpan.FromSeconds(600))
End If


and instead of using statement at the top you add:
Code:
Imports System.Web.Caching


Regards,
Alan

__________________
Alan Telford
jimatqsi

Registered:
Posts: 62
Reply with quote  #18 
I'm tackling some page performance problems this week. This will be very helpful. 

Thank you!
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Download Iron Speed Designer

Terms of Service Privacy Statement