D
David
Hi all,
This is a weird one.
I have been asked to look at an intermittent fault.
Basically, I have a webservice that is delivering info into a datagrid.
Dim Statement As New my_service.Statement
Dim my_data As New my_service.my_data
Statement = my_data.FullStatement(AccNo, StartDate)
dgridStatement.DataSource = Statement.StatmentEntries
dgridStatement.DataBind()
From what I see here, Statement is on the webservice, so
my_data.FullStatement is calling the webservice, to push it back to the
webservice, then bring brought down again from the webservice for the
datasource of the datagrid.
I have simplified it, but not sure if it has the same effect... basically,
statement is now a local dataset, which is now
my_data.FullStatement(...).StatmentEntries then bind just statement to the
datagrid.
The problem I am having (prior to the change, don't know if it happens after
the change yet) is that randomly, the data in the datagrid is doubling for
each row. It doesn't happen often, but it does happen.
There could potentially be 3 points (that I see) where it is happening.
1. On the database. Highly unlikely in my opinion. (The DB is using a stored
proc calling a view, which comes from 3 tables, so a possibility that it
could be from here)
2. The backwards and forwards of the data in the code snippet above.
3. a problem with the datagrid.
I had probs with the datagrid on another unrelated project where the
databind was running twice, so this is why I won't discount this.
Has anyone come up against a similar issue. This is REALLY puzzling me.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
This is a weird one.
I have been asked to look at an intermittent fault.
Basically, I have a webservice that is delivering info into a datagrid.
Dim Statement As New my_service.Statement
Dim my_data As New my_service.my_data
Statement = my_data.FullStatement(AccNo, StartDate)
dgridStatement.DataSource = Statement.StatmentEntries
dgridStatement.DataBind()
From what I see here, Statement is on the webservice, so
my_data.FullStatement is calling the webservice, to push it back to the
webservice, then bring brought down again from the webservice for the
datasource of the datagrid.
I have simplified it, but not sure if it has the same effect... basically,
statement is now a local dataset, which is now
my_data.FullStatement(...).StatmentEntries then bind just statement to the
datagrid.
The problem I am having (prior to the change, don't know if it happens after
the change yet) is that randomly, the data in the datagrid is doubling for
each row. It doesn't happen often, but it does happen.
There could potentially be 3 points (that I see) where it is happening.
1. On the database. Highly unlikely in my opinion. (The DB is using a stored
proc calling a view, which comes from 3 tables, so a possibility that it
could be from here)
2. The backwards and forwards of the data in the code snippet above.
3. a problem with the datagrid.
I had probs with the datagrid on another unrelated project where the
databind was running twice, so this is why I won't discount this.
Has anyone come up against a similar issue. This is REALLY puzzling me.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available