Solved

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

Posted on 2009-04-14
7
189 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
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 …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

623 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