473,395 Members | 1,941 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,395 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 1337
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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.