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

Recently written record does not show in a descendingly sorted dat

Here's the problem I'm having. I write a record to backend database and upon
the postback my record set is not showing the record I just added. If I
close the page totally and reopen the page it will show up, or if I add a
second record the first will show upon the postback of the page but the
second one won't. My dataset is loaded descending so the record I just added
should be the first one in the datagrid.

I've tried resetting the dataset, destroying it and recreating, everything I
can think of and it keeps happening. I'm using C# in VS 2003 and SQL 2005.

Any ideas are welcomed...

Thanx
Mar 27 '06 #1
1 1217
My suggestions:
1) Make sure you are not databinding to a dataset saved in the Session state
from previous query
2) Make sure you databind the server controls to the freshly retrieved
dataset after each insert of a new record.

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Coty" wrote:
Here's the problem I'm having. I write a record to backend database and upon
the postback my record set is not showing the record I just added. If I
close the page totally and reopen the page it will show up, or if I add a
second record the first will show upon the postback of the page but the
second one won't. My dataset is loaded descending so the record I just added
should be the first one in the datagrid.

I've tried resetting the dataset, destroying it and recreating, everything I
can think of and it keeps happening. I'm using C# in VS 2003 and SQL 2005.

Any ideas are welcomed...

Thanx

Mar 27 '06 #2

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

Similar topics

0
by: Ronald van Raaphorst | last post by:
Hi all, Is there a way to find the position of a certain record (id) in a result set, based on a (autonumber id)? Example: My table has 2 fields: id & name, and the contents = id name 1 ...
0
by: Ronald van Raaphorst | last post by:
Hi all, Is there a way to find the position of a certain record (id) in a result set, based on a (autonumber id)? Example: My table has 2 fields: id & name, and the contents = id name 1 ...
3
by: sean | last post by:
I have a table with fixed row of records SORTED by DATE using ADO pagination method. The user can click a link in one table cell and go to another page to modify the record. Once the updated record...
1
by: Sunray | last post by:
I have a form called the sales form and i have 2 sets of listboxes So what happens is. i add items form the bottom set of list boxes which are bound to a data base to the top set of list boxes which...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.