Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 21st, 2009, 12:27 PM
Registered User
 
Join Date: Jul 2009
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Post Couldn't access the cache.select() method of cache object

Hi,

i am trying to access the Select() method of the cache object, but visual studio is not showing any option, i am trying to achieve that

ArrSession = Context.Cache("SessionKeys").select(StrMatch)

is it obsolete now, any alternative.

Background:
i am trying to build a web service,in that web service i am using the cache object to save the data from the databse and then later on find the string from the cache object.
i have taken that concept from the ASP.Net Unleashed v1.1, ch:23


thanks in advance,


Regards,

Last edited by geniusboy; July 22nd, 2009 at 05:14 AM..
 
Old July 25th, 2009, 08:46 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Same issue here as you other post. Context.Cache("SessionKeys") returns an Object, so you need to know the type stored in the cache, cast it appropriately and then call any methods on it.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
geniusboy (July 29th, 2009)
 
Old July 29th, 2009, 05:45 AM
Registered User
 
Join Date: Jul 2009
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Post

thanks imar,

well, i have decided to go for WCF instead of working on Web Services.
i am reading asp.net 3.5 to grab the basic idea of WCF and the i will Kick off with WCF.


thanks for your reply,

Regards,





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to populate combo box with data from the cache object jazzydonald ASP.NET 3.5 Professionals 0 March 15th, 2009 06:37 AM
Tapping into cache object jazzcatone ASP.NET 3.5 Basics 1 June 8th, 2008 05:10 PM
Using Find Method of ADO martinaccess Access 3 November 21st, 2007 07:35 AM
00Synchronize Distributed Object Cache SQL Ser sarosh Classic ASP Basics 0 June 8th, 2007 11:22 AM
find method in Hibernate sikharsaikia Java Databases 3 August 10th, 2005 05:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.