473,396 Members | 1,968 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,396 software developers and data experts.

SQLDataSource Caching and Filtering

I have a component control that I created as a UserControl which
contains a SqlDataSource control, a GridView control, a DropDownList
control, a TextBox control, and a Button control. The idea is that the
user can select a column from the DropDownList, enter some text to
search on in that column, and click the Button to perform the search.
Then only the records matching the search criteria for that column will
be displayed.

The search capability is working, but the SqlDataSource is firing the
Selected event every time my UserControl updates the FilterExpression
of the SqlDataSource. The same thing happens every time the page of
the GridView is changed.

The SqlDataSource has EnableChacing set to true, DataSourceMode set to
DataSet, and the CacheDuration is set to Infinite. Isn't the purpose
of caching the SQLDataSource so that you can page through and filter
the result set without having to hit the database each time?

Jun 12 '06 #1
0 1216

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

Similar topics

3
by: George Ter-Saakov | last post by:
I have a Response.Filter set. Will it affect caching (by ASP.NET) of my page? Basically the question is caching happens before or after filtering? My understanding ,because partial caching...
0
by: Camel | last post by:
Hi, I'm just learning the new databinding paradigm in ASP.NET 2 and I have a question. What if I want to use 1 SqlDataSource for 2 comboboxes? What I want is a master/detail relationship...
0
by: Micke | last post by:
Hi, I have a sqldatasource were caching is enabled. I want the page to read from the cache everytime the page ispostback. Everytime the page is accessed for the first time I like to remove the...
2
by: djc | last post by:
1) I am wondering if I should be using an sqlDataSource object for my particular scenario. I need to loop through a listbox and perform an INSERT sql operation for each item. Could be a few or...
4
by: Mike | last post by:
Is there any difference in performance between a SqlDataSource and an ObjectDataSource - assuming they are being deployed to perform the same task against a SQL Server database? Mike
6
by: Ken Fine | last post by:
I'm using SQLDataSource, which generates some kind of dataset, and then I attach that datasource to various data display controls such as DataList and repeater which loop through to the end of the...
2
by: kevinpond | last post by:
I have a Gridview displaying the results of a stored procedure. The stored procedure is constantly changing so the columns displayed in the data grid are constantly changing. I'd like to give...
1
by: jobs | last post by:
Cannot find column . Am I missing something here... SelectCommand="SELECT , , , refid FROM " FilterExpression="phone_nbr like @phone_nbr + '%'"
2
by: pechar | last post by:
Hi all, I am using a web service to retrieve data from a remote foxpro database for an ecommerce database. Practically all data except static content will be retrieved through this web service. I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.