473,396 Members | 2,090 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.

Need some ideas to selectively fetch data via object data source or cache...

Hi,
I have a 3 tier ASP.Net app for a handheld which needs to fetch
orders from database via a DAL and populate it in a gridview using
objectdatasource. In the search page I have a few parameters and when
the search button is clicked I am sending those parameters via query
string ( I need to do this since my app will run in a handheld which
has certain restrictions). In the order list page, I am passing those
parameters to the DAL as queryparameters. Once I fetch the data from
DAL, I am populating the data on the datagrid.
Now, once the data is displayed, when the user selects a row I am
pointing them to a separate "edit" page, where they can edit several
fields corresponding to that row (not all of them will be displayed in
the gridview, so gridview in place editing can not be done) and when
the user hits save, I need to pass those values back to the "order
list" page where the gridview is displayed. Now once they redirected
back to the gridview page, I dont want the object data source to fetch
the data again from database but use the data already I am caching in
that page. Is this even possible? Since we have everything done
declaratively, how do I even selectively bind the gridview to the
cached data in one case vs. getting the data from database in the other
case.
I know, instead of decalratively adding parameters , I can also add
them in the page _load using ObjectDataSource1.SelectParameters.Add.
But how do I let the code to get the data from database in one case and
let the data from cache bind back to the gridview in the other case?
Any help would be very much appreciated.
Thanks
-Siva

Apr 24 '06 #1
1 2290
Rebind. What if you have a concurrency violation? Let the backend handle
that, and take the db hit again

Jeff
"Siva" <si*****@yahoo.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Hi,
I have a 3 tier ASP.Net app for a handheld which needs to fetch
orders from database via a DAL and populate it in a gridview using
objectdatasource. In the search page I have a few parameters and when
the search button is clicked I am sending those parameters via query
string ( I need to do this since my app will run in a handheld which
has certain restrictions). In the order list page, I am passing those
parameters to the DAL as queryparameters. Once I fetch the data from
DAL, I am populating the data on the datagrid.
Now, once the data is displayed, when the user selects a row I am
pointing them to a separate "edit" page, where they can edit several
fields corresponding to that row (not all of them will be displayed in
the gridview, so gridview in place editing can not be done) and when
the user hits save, I need to pass those values back to the "order
list" page where the gridview is displayed. Now once they redirected
back to the gridview page, I dont want the object data source to fetch
the data again from database but use the data already I am caching in
that page. Is this even possible? Since we have everything done
declaratively, how do I even selectively bind the gridview to the
cached data in one case vs. getting the data from database in the other
case.
I know, instead of decalratively adding parameters , I can also add
them in the page _load using ObjectDataSource1.SelectParameters.Add.
But how do I let the code to get the data from database in one case and
let the data from cache bind back to the gridview in the other case?
Any help would be very much appreciated.
Thanks
-Siva

Apr 24 '06 #2

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

Similar topics

2
by: lawrence | last post by:
I've been bad about documentation so far but I'm going to try to be better. I've mostly worked alone so I'm the only one, so far, who's suffered from my bad habits. But I'd like other programmers...
21
by: Chris Reedy | last post by:
For everyone - Apologies for the length of this message. If you don't want to look at the long example, you can skip to the end of the message. And for the Python gurus among you, if you can...
3
by: Frustrated Developer via DotNetMonster.com | last post by:
I have posted a couple times on here already and found the user community to be very helpful. I took on a project before I realized how difficult a time I'm having working with a database....
3
by: pitachu | last post by:
hi all, I need some high level and efficient ideas on how caching should be designed in the scenario below. The application and the cache will most likely be in VB.NET. I have a central...
2
by: rufpirat | last post by:
Hello I'm in the middle of trying to build an "AD phone book", and this being my first try at asp.net, I have a few questions that I hope some of you might be able to help with: 1. Is it...
0
by: negmat | last post by:
Hello everyone, I have the following question: I am aware that the objects currently in the cache can be viewed by issuing the following command: SELECT * FROM master.dbo.Syscacheobjects ...
8
by: Izzy | last post by:
I'm writting an app that has two DataGridViews, in the first grid I load a list on companies. Between the 2 grids are two buttons with arrows, one points to the right the other to the left. When...
3
by: Amanduh | last post by:
Okay, this is kind of a weird question that probably has an obvious answer. I'm making a form that allows me to enter new visits for a study that has multiple visits. For example, Study1 has...
1
by: Coderer | last post by:
I have a project that I've been working on for a while, where several forms use DataGridViews to represent database information. The forms are .NET 2.0, in Studio 2005. For the past couple of...
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
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.