473,327 Members | 2,103 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,327 software developers and data experts.

Data Sets

Gil
I use the XP Pro OS and VB.NET in VS 2003 as my development platform. Over
the last year, I have been trying to compress my development into as few
files as possible. For instance, for similar report pages I have
consolidated into a single .aspx page and used dynamic datagrids
(programatically created and configured rather that in the designer) rather
than having multiple pages. Also, if I have a project with many .aspx pages
I will place all tables generated from data adapters into a single data set.

Recently however, one of my users pointed out a bug that I am having trouble
fixing. Some of my databound controls are not pulling the data properly. If
I regenerate the data set the problem is fixed. The weird part is that if I
do other work (on a different .aspx page!) and regenerate the data set for a
different table my recently fixed problem on the previous page reemerges.

I speculate that this may have something to do with the data set. My
rationale in dumping everything into a common data set has been that if I
call a page that reuses a table (albeit filtered with a different WHERE
clause) the fill method of the data set should take care of the pulling in
the right values. Is this wrong?

TIA,
Gil
Jul 21 '05 #1
3 1332
How are you persisting the DataSet between Requests?

Are you using cache?

--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"Gil" <Gi*@discussions.microsoft.com> wrote in message
news:DC**********************************@microsof t.com...
I use the XP Pro OS and VB.NET in VS 2003 as my development platform. Over
the last year, I have been trying to compress my development into as few
files as possible. For instance, for similar report pages I have
consolidated into a single .aspx page and used dynamic datagrids
(programatically created and configured rather that in the designer)
rather
than having multiple pages. Also, if I have a project with many .aspx
pages
I will place all tables generated from data adapters into a single data
set.

Recently however, one of my users pointed out a bug that I am having
trouble
fixing. Some of my databound controls are not pulling the data properly.
If
I regenerate the data set the problem is fixed. The weird part is that if
I
do other work (on a different .aspx page!) and regenerate the data set for
a
different table my recently fixed problem on the previous page reemerges.

I speculate that this may have something to do with the data set. My
rationale in dumping everything into a common data set has been that if I
call a page that reuses a table (albeit filtered with a different WHERE
clause) the fill method of the data set should take care of the pulling in
the right values. Is this wrong?

TIA,
Gil

Jul 21 '05 #2
Gil
I don't believe I am persisting data? I simply use the fill method to
populate my data set using:

private sub page_load(...)
if not page.ispostback then
...
daAdapter.fill(me.dsDataset)
...
end if

My thought was that if the data adapter is specified in the code behind then
it will simply use the definition, when the page is called, and populate the
data set with the right data.

Gil

"Mike McIntyre" wrote:
How are you persisting the DataSet between Requests?

Are you using cache?

--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"Gil" <Gi*@discussions.microsoft.com> wrote in message
news:DC**********************************@microsof t.com...
I use the XP Pro OS and VB.NET in VS 2003 as my development platform. Over
the last year, I have been trying to compress my development into as few
files as possible. For instance, for similar report pages I have
consolidated into a single .aspx page and used dynamic datagrids
(programatically created and configured rather that in the designer)
rather
than having multiple pages. Also, if I have a project with many .aspx
pages
I will place all tables generated from data adapters into a single data
set.

Recently however, one of my users pointed out a bug that I am having
trouble
fixing. Some of my databound controls are not pulling the data properly.
If
I regenerate the data set the problem is fixed. The weird part is that if
I
do other work (on a different .aspx page!) and regenerate the data set for
a
different table my recently fixed problem on the previous page reemerges.

I speculate that this may have something to do with the data set. My
rationale in dumping everything into a common data set has been that if I
call a page that reuses a table (albeit filtered with a different WHERE
clause) the fill method of the data set should take care of the pulling in
the right values. Is this wrong?

TIA,
Gil


Jul 21 '05 #3
Hi Gil,

I asked if you were persisting the DataSet or had enable page caching
because doing so could give you the issue you described.
--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"Gil" <Gi*@discussions.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
I don't believe I am persisting data? I simply use the fill method to
populate my data set using:

private sub page_load(...)
if not page.ispostback then
...
daAdapter.fill(me.dsDataset)
...
end if

My thought was that if the data adapter is specified in the code behind
then
it will simply use the definition, when the page is called, and populate
the
data set with the right data.

Gil

"Mike McIntyre" wrote:
How are you persisting the DataSet between Requests?

Are you using cache?

--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"Gil" <Gi*@discussions.microsoft.com> wrote in message
news:DC**********************************@microsof t.com...
>I use the XP Pro OS and VB.NET in VS 2003 as my development platform.
>Over
> the last year, I have been trying to compress my development into as
> few
> files as possible. For instance, for similar report pages I have
> consolidated into a single .aspx page and used dynamic datagrids
> (programatically created and configured rather that in the designer)
> rather
> than having multiple pages. Also, if I have a project with many .aspx
> pages
> I will place all tables generated from data adapters into a single data
> set.
>
> Recently however, one of my users pointed out a bug that I am having
> trouble
> fixing. Some of my databound controls are not pulling the data
> properly.
> If
> I regenerate the data set the problem is fixed. The weird part is that
> if
> I
> do other work (on a different .aspx page!) and regenerate the data set
> for
> a
> different table my recently fixed problem on the previous page
> reemerges.
>
> I speculate that this may have something to do with the data set. My
> rationale in dumping everything into a common data set has been that if
> I
> call a page that reuses a table (albeit filtered with a different WHERE
> clause) the fill method of the data set should take care of the pulling
> in
> the right values. Is this wrong?
>
> TIA,
> Gil


Jul 21 '05 #4

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

Similar topics

2
by: ben moretti | last post by:
hi i'm learning python, and one area i'd use it for is data management in scientific computing. in the case i've tried i want to reformat a data file from a normalised list to a matrix with some...
6
by: Saikrishna | last post by:
Hi friends, I am trying to choose the best possible data structure for the probelm I am going to describe now. I have lets say tens of thousands of numbers in file1 and tens of thousands of...
9
by: Eric Lilja | last post by:
Hello, consider the following two functions: /* function foo() */ void foo() { float y = 0.0f; float sum = 0.0f; for(int i = 0; i < num; ++i) {
4
by: Oyvind | last post by:
I'm working on a Windows forms/C# database application. My background is 6-7 years of VB 4 - 6, MS Access, VC++, mixed in with a lot of T-SQL and MS SQL Server in general and some OOA/OOD. ...
2
by: Matthias S. | last post by:
Hi, I have to write an application which extensively uses an SQL Database. For a simple example say I have the following tables with the appropriate fields. 1. Company (ID, Name,...
2
by: jason | last post by:
the enterprise is going to eventually convert the existing ASP Classic website to ASP.NET until that time, development has already begun for a C# library of business objects. for the most part,...
6
by: Ben Finney | last post by:
Howdy all, Summary: I'm looking for idioms in unit tests for factoring out repetitive iteration over test data. I explain my current practice, and why it's unsatisfactory. When following...
2
by: alex.mcshane | last post by:
Hi - I would be grateful for any knowledge regarding the following. Whilst QAing Stored Procedures developed by colleagues, I noticed the following 'superflous' parameter specifications:- 1)...
11
by: mwt | last post by:
Hi. I'm reworking a little app I wrote, in order to separate the data from the UI. As a start, I wanted to create a iron-clad data recepticle that will hold all the important values, and stand up...
3
by: ArmageddonAsh | last post by:
I'm trying to make an application that will allow the user to enter data into a flexgrid (that's done) and then save the data from that flexgrid into a CSV file but even though the file is made none...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.