473,654 Members | 3,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Asp.net caching vs Access Caching.

Hi folks.
I learning asp.net and compare it with traditional asp and
Access-developing.

The issue is this one:
1/I have this Ms Acceess adp-project application that works fine on my
Ms Sql server database.
In my main form I have an Access-combobox with Customer-names from my
customer table.
In this combo-box are about 2000 records.
With this combobox the users can make a database query to work on only
the records in
my main table that are related to the customer they have chosen.
In this situation the comboxbox load very quickly.

2/ Then I moved the sql server databases to a remote server.
Then I connect though my Client Access2000-adp file through internet.
Now the combobox with customer names loads more slowly, but only then
first time when I load the Access main-form.
Then it seems that the combobox is cached somehow because then the
users can look for customer-records fast and convient.
Also this approch is OK for my users.

3/ And now I try the same approach with an asp.net-webform.
I cach the datsource for the asp.net dropdown. But even so, in this
case the customers asp:dropdown loads slowly on every postback I make.
I think now that my users used to my userfriendly Access-forms wouln't
like the move from the Access app. into an asp.net app.

Thinking about if there is a possibilty to cach comboboxes and
dropdowns on the client the way Access-projekt-asp-forms can do with
Visual studio dot net.
Does anyone know about these issues?
BigOlle

Nov 13 '05 #1
15 3410
ol**@ylm.se wrote:
Hi folks.
I learning asp.net and compare it with traditional asp and
Access-developing.

The issue is this one:
1/I have this Ms Acceess adp-project application that works fine on my
Ms Sql server database.
In my main form I have an Access-combobox with Customer-names from my
customer table.
In this combo-box are about 2000 records.
With this combobox the users can make a database query to work on only
the records in
my main table that are related to the customer they have chosen.
In this situation the comboxbox load very quickly.

2/ Then I moved the sql server databases to a remote server.
Then I connect though my Client Access2000-adp file through internet.
Now the combobox with customer names loads more slowly, but only then
first time when I load the Access main-form.
Then it seems that the combobox is cached somehow because then the
users can look for customer-records fast and convient.
Also this approch is OK for my users.

3/ And now I try the same approach with an asp.net-webform.
I cach the datsource for the asp.net dropdown. But even so, in this
case the customers asp:dropdown loads slowly on every postback I make.
I think now that my users used to my userfriendly Access-forms wouln't
like the move from the Access app. into an asp.net app.

Thinking about if there is a possibilty to cach comboboxes and
dropdowns on the client the way Access-projekt-asp-forms can do with
Visual studio dot net.
Does anyone know about these issues?
BigOlle

I am also an Access person who is learning ASP.NET
I recommend you get a book: "Microsoft asp.net web matrix starter kit".
I bought it for the info on the FREE Microsoft development environment
Web Matrix (a sort of Lite version of Visual studio . NET). IT also has
good info on caching records read to solve just the kind of issue you have.

I got my copy for about $8 including shipping through Amazon, from one
of their 3rd party vendors.

Bob
Nov 13 '05 #2
thanks for your tip.
I problably by this book, if you think that it is userful even if I am
installing Visual Studio dot net instead of webb Matrix.

a question: As I plan to install visual studio dot net on my computer i
wonder if Webb Mattrix can be installed on the same computer.

But I still don't mind getting some more code tip on this issue on
caching asp.net dropdowns on the client

Nov 13 '05 #3
ASP.NET comes with all kinds of caching options You can cache entire
user controls or simple objects like datasets. You can also use the
session and application objects to store objects. However, objects
don't get cached by themselves--you have to specify the caching.

The new .NET framework includes the ability to detect when the
underlying data has been changed so that the cached data is always kept
in sych.

Any beginning ASP.NET book will cover the large number of caching
options available.

Bill E.
Hollywood, FL

Nov 13 '05 #4
Well bill.
Have looked about caching in :
Mircosoft.net: Deposito: "Building web solutions with asp.net and
ado.net"
and
Sams: Chris Payne: "Teach yourself ASP.NET in 21 days"
and I haven't found anything about caching dropsdowns on the client in
theese books.
Only how you cashe the datasource for the dropdown.
Maybee you know about some good books on this issue?

Nov 13 '05 #5
Well bill.
Have looked about caching in :
Mircosoft.net: Deposito: "Building web solutions with asp.net and
ado.net"
and
Sams: Chris Payne: "Teach yourself ASP.NET in 21 days"
and I haven't found anything about caching dropsdowns on the client in
theese books.
Only how you cashe the datasource for the dropdown.
Maybee you know about some good books on this issue?

Nov 13 '05 #6
Caching on the client wouldn't make much sense because your client is
the browser. You'll need to take care of caching on the server, which
will benefit all users simultaneously.

In my apps, I use a user control for all dropdowns and I built into it
the ability to cache the source dataset automatically as well as store
the selected value in a session variable. If I wanted to, I could also
store the entire control in cache.

Either of these methods (caching the source dataset or caching the user
control) would work fine for you.

Bill

ol**@ylm.se wrote:
Well bill.
Have looked about caching in :
Mircosoft.net: Deposito: "Building web solutions with asp.net and
ado.net"
and
Sams: Chris Payne: "Teach yourself ASP.NET in 21 days"
and I haven't found anything about caching dropsdowns on the client in theese books.
Only how you cashe the datasource for the dropdown.
Maybee you know about some good books on this issue?


Nov 13 '05 #7
Hi again Bill.
bi********@nets cape.net wrote:

In my apps, I use a user control for all dropdowns and I built into it the ability to cache the source dataset automatically as well as store the selected value in a session variable. If I wanted to, I could also store the entire control in cache.
Either of these methods (caching the source dataset or caching the user control) would work fine for you. hm.. As cashing the dropdown datasource with 2000 records is too slow I
am thinking of cashing the user control,( Id = "mydropdown-contol"...)
Is this the way to do it:
1/Make a page with the drowdown-control with an outputcache on the
whole page.
2/ Save this file with the name:
"mydropdown.asc x"
3/ Then I use this contol in another page, called for exampel,
"MyUpdateForm.a spx" , where the whole database is updated and ...

Is this approach the way you do it?
/Regards Big Olle
Bill


Nov 13 '05 #8

Caching a dataset with 2000 records would be lightning fast. What
makes you think that it would be slow?

I always cache the dataset. I make it part of the way the control
operates. I typically include a boolean property that if set to True
causes the control to cache the dataset and to look in cache for the
dataset when it loads.

I haven't yet had any good reason to cache the entire control.

Bill

Nov 13 '05 #9
Hej again.
Here is my tuturial asp.net file.
By default I run a sql-query that returns 16459 Records.
I Cache the whole recordset.
Before i Added the dropdown with 2000 records
this application worked fine.
When I click to get the next record, the dropdown loads slowly every
time even as i have cached it's datasource.
here it is: (hope you understand it how it works even if texts are i
Swedish)
http://databas.ylm.se/olle_test/saml...ing_cache.aspx
/Regards BigOlle

Nov 13 '05 #10

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

Similar topics

6
2182
by: JZ | last post by:
Is there any equivalent of caching sql queries for Python like ADOdb for PHP? (For those who did not hear about ADODb and its feature : http://phplens.com/adodb/caching.of.recordsets.html) -- JZ
4
2733
by: DylanM | last post by:
I've seen a few examples on how to cache data in a WinForms GUI, just after some thought on the best solution. The data I'm trying to cache will be generally be small collections of Business Objects (eg Lookup data) 1) Using the Web Cache objects 2) Using AppDomain.CurrentDomain.SetData 3) Using the Caching Application Block
2
1212
by: Joel Barsotti | last post by:
My website has different products and I've developed a nice little object oreinted class library for them. I then use the objects for products and such on many different pages. Especially with some products inheriting from other objects and many of them needing to access the database to initialize correctly I've created quite the load on my sql server. I was hoping to alivate this via caching I was hoping do somthing like this. public...
6
6255
by: onnodb | last post by:
Hi all, While working on an Access UI to a MySQL database (which should be a reasonable, low-cost, flexible interface to the DB, better than web-based, much less costly than a full-fledged .NET app or so.... is it?), I tried measuring the bandwith consumed by the Access/MyODBC/MySQL link, which came out to be, er, quite high. I fancied it would be interesting to look at the queries Access throws at MySQL through the ODBC link, so I...
1
1628
by: mindflower | last post by:
Hi, i have a web application running on multiple web domains. I'm looking for the best way to cache data across these multiple domains. The System.Web.Caching.Cache only supports caching over a single domain and is therefore no help for me. Can anyone tell me what is the best way? COM+ ? Thanks for any hint Stefan
5
2017
by: ask ksa | last post by:
hi, is anybody familiar with production-ready distributed/clustered cache solution for .net ? Google helped me to found some (like ncache and scale-out-state-server), but they are over-priced thanks anyway for your time reading that
4
15123
by: Harry Haller | last post by:
What's wrong with this: Error 3 'System.Web.Caching.Cache' is a 'type', which is not valid in the given context public List<AssetSummaryGetAssetSummary() { return (List<AssetSummary>)System.Web.Caching.Cache("assetSummary"); }
3
1973
by: Gary W. Smith | last post by:
I had a couple questions about data caching. We have a site that gets a huge amount of traffic to a few specific pages that have a lot of data on them (300k hits/hour during peak, about 6-10 data calls per page OR 500 SQL calls per second). Most of the data doesn't change more than once ever 10 minutes. Basically they are data islands with specific content. We have already implemented a singleton that manages a connection pool. This...
0
14778
docdiesel
by: docdiesel | last post by:
The fastest (and cheapest) transfer of data is that which doesn't have to be done - because the data is already there. Or still there - the caching of files is widely known and practised. Each web browser is caching the files he formerly requested from the web server. But if the file is to be loaded a second time, still a request is sent to the web server which then usually is answering with a "304 Not modified" as can be seen in his access...
0
8372
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8285
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8475
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7304
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4293
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2709
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1915
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1592
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.