473,385 Members | 1,521 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

my cached dataset just wont stay cached!!

is there something im doing wrong??

the dataset is cached up until i click a button then when i try to retrieve
it, it justs says its nothing!!

this is code where it gets inserted into the cache

Cache.Insert("myDS", dsResults, Nothing,
System.Web.Caching.Cache.NoAbsoluteExpiration, TimeSpan.FromSeconds(300))
now if i query the cached dataset it shows that there is data in it!!

but once i click my button and this code for the click button runs to try to
retrieve it - it comes back saying the dsResults is 'nothing'

Private Sub btnSearch_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnSearch.Click
Dim strCode As String = txtCode.Text
Dim strDescription As String = txtDescription.Text
Dim strFilter As String
Dim drFilteredRows As DataRow()
Dim dtDataTable As New DataTable
Dim dsResults As DataSet

dsResults = CType(Cache.Item("myDS"), DataSet)
strFilter = "Code='" & strCode & "' AND Description='" & strDescription &
"'"
drFilteredRows = dsResults.Tables(0).Select(strFilter)
Nov 19 '05 #1
0 992

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: D Witherspoon | last post by:
My application takes 5 or 6 seconds to load because of the time required to communicate with web services and load from the database. In the meantime I'd like to show a splash screen in a seperate...
2
by: ALPO | last post by:
ANy good examples of paging against a cached dataset. Our datasets will be cached in viewstate.
0
by: Giammarco | last post by:
Hi all, I was wondering if you could advice me how to update a cached dataset only when the content of the related dataview on the MS SQL Server changes. Thanks in advance, Giammarco
1
by: JJ | last post by:
Hi, I was wondering in order to create a cached dataset as so: DataSet ds = new DataSet(); ds = (DataSet)Cache; You would think you would have to call
5
by: Nick | last post by:
Hi there, This one is really doing my head in, I am attempting to start a thread using the following code, -------------------- Public Sub start() cTrdImportThread = New...
7
by: =?Utf-8?B?ZG91Zw==?= | last post by:
Have loaded balanced web servers that we do not allow to connect to our database. Content is created and pushed to these sites. I want to add a web service that may get multiple requests a second...
1
by: azrael | last post by:
I am working on an application using Python, wxPython and Sqlite (Pysqlite) So my problem is that I can connect top the database. When I open a dialog through a form I am able to make a select,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.