Solved

inaccuracy between a DB table and its boud Asp.net Grid View

Posted on 2009-04-14
7
186 Views
Last Modified: 2012-05-06
Hello,
I have one Sql Server 2005, bound to an Asp.net web application.
There is something weird happening!!

There is one page using a grid view, and in it there is one column "Stock"  that is displaying wrong values for some records.
Those values are wrong because they are different from the DB table.
I would say like 20% of the records in this GV are having this problem.

And, there is one text box and a button on the page, where the user can enter a product code to filter the relative record in the GV.
When all the records are displayed in the GV with no filter value set, suppose that we check in the whole list the records ABC, and we found a stock 0 instead of 15, that's not good because in the DB table it's 15.
But if we filter the ABC we foung 15 !!
Can someone help please!
0
Comment
Question by:Nyana22
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 15

Accepted Solution

by:
spprivate earned 370 total points
ID: 24139784
I guess there is a problem in your select query.This causes the weird result coming up
0
 
LVL 14

Assisted Solution

by:GiftsonDJohn
GiftsonDJohn earned 80 total points
ID: 24139858
Please post the code.
0
 

Author Comment

by:Nyana22
ID: 24139871
i don't thing there is a problem in the select, because i tested it.

and now i created a new page, where the data source is the same stored procedure and it worked fine!
and by the way on my pc (development) there were no problem, only it happened on the server.!!
thanks
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 50 total points
ID: 24140655
>>on my pc (development) there were no problem, only it happened on the server<<
Ah, yes.  That is a very common problem. It is called the "But it works on my workstation" syndrome.
0
 
LVL 15

Expert Comment

by:spprivate
ID: 24140722
Please post the code
0
 
LVL 15

Expert Comment

by:spprivate
ID: 24152465
Can you explain what was the issue
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 24153529
And more importantly why I was awarded points.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question