I have an asp page that gets populated from a SQL Server database. Normally
when the page gets displayed it displays the current record from a select
statement that can return lets say seven records.
The problem I am having is when I click the refresh button in IE, the page
displays another record instead of the record it was displaying before I
clicked on the refresh button.
I cannot figure out why it is doing this. Has anyone experienced a similar
problem? If so, what solution did you come up with.
Thanks
Mark 6 1210
It's hard to say without seeing the code that you're using to pull in the
records.
Ray at work
"LisaMark0822" <Li**********@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com... I have an asp page that gets populated from a SQL Server database.
Normally when the page gets displayed it displays the current record from a select statement that can return lets say seven records.
The problem I am having is when I click the refresh button in IE, the page displays another record instead of the record it was displaying before I clicked on the refresh button.
I cannot figure out why it is doing this. Has anyone experienced a similar problem? If so, what solution did you come up with.
Thanks
Mark
are you specifying the record, with an ID or such, and not multiple records?
If you dont specify the result set to ONE record, or use some soft of ORDER
BY type clause you can not guarantee which record will be the "first".
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"LisaMark0822" <Li**********@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com... I have an asp page that gets populated from a SQL Server database. Normally when the page gets displayed it displays the current record from a select statement that can return lets say seven records.
The problem I am having is when I click the refresh button in IE, the page displays another record instead of the record it was displaying before I clicked on the refresh button.
I cannot figure out why it is doing this. Has anyone experienced a similar problem? If so, what solution did you come up with.
Thanks
Mark
How do you know which record is "current" ?
Patrice
--
"LisaMark0822" <Li**********@discussions.microsoft.com> a écrit dans le
message de news:0B**********************************@microsof t.com... I have an asp page that gets populated from a SQL Server database.
Normally when the page gets displayed it displays the current record from a select statement that can return lets say seven records.
The problem I am having is when I click the refresh button in IE, the page displays another record instead of the record it was displaying before I clicked on the refresh button.
I cannot figure out why it is doing this. Has anyone experienced a similar problem? If so, what solution did you come up with.
Thanks
Mark
What I have is on the prior page I display all the records returned from the
select statement, lets say 7. The user clicks on the record he wants (record
3 of 7) and it takes you to another page that displays the information from
the select statement. However, when I click the refresh button on the asp
page, when the page gets refreshed, it displays record 4, or 5 or 2 not the
current record that was displayed prior to the user clicking on the refresh
button. I hope that helps.
Thanks,
Mark
"LisaMark0822" wrote: I have an asp page that gets populated from a SQL Server database. Normally when the page gets displayed it displays the current record from a select statement that can return lets say seven records.
The problem I am having is when I click the refresh button in IE, the page displays another record instead of the record it was displaying before I clicked on the refresh button.
I cannot figure out why it is doing this. Has anyone experienced a similar problem? If so, what solution did you come up with.
Thanks
Mark
We still don't know how your page is determining what record to pull in. Is
there something in the querystring?
<% iRecordIDToDisplay = Request.Querystring("id") %>
Or something like that?
Is this page in frames, by chance?
Ray at work
"LisaMark0822" <Li**********@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com... What I have is on the prior page I display all the records returned from
the select statement, lets say 7. The user clicks on the record he wants
(record 3 of 7) and it takes you to another page that displays the information
from the select statement. However, when I click the refresh button on the asp page, when the page gets refreshed, it displays record 4, or 5 or 2 not
the current record that was displayed prior to the user clicking on the
refresh button. I hope that helps.
Thanks,
Mark "LisaMark0822" wrote:
I have an asp page that gets populated from a SQL Server database.
Normally when the page gets displayed it displays the current record from a
select statement that can return lets say seven records.
The problem I am having is when I click the refresh button in IE, the
page displays another record instead of the record it was displaying before I clicked on the refresh button.
I cannot figure out why it is doing this. Has anyone experienced a
similar problem? If so, what solution did you come up with.
Thanks
Mark
LisaMark0822 wrote: What I have is on the prior page I display all the records returned from the select statement, lets say 7. The user clicks on the record he wants (record 3 of 7) and it takes you to another page that displays the information from the select statement. However, when I click the refresh button on the asp page, when the page gets refreshed, it displays record 4, or 5 or 2 not the current record that was displayed prior to the user clicking on the refresh button.
Are you using an ORDER BY clause in your SELECT statement? More to the
point, are you ordering on a column that actually differentiates between
records?
Either way, it would be better to use an identity or primary key value for
identifying the record to display, since the Nth record of any SELECT
changes as the data changes.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: swp |
last post by:
I have a site created using ASP, HTML, and JavaScript. I use frames
to manage a few things, and requires SSL to connect. The site is on a
secured network, not meant to be cross-browser...
|
by: jdi |
last post by:
Hello,
I have a seemingly basic question about ASP.NET. I would like to
create a page containing an image, which keeps swapping the url of the
image source, without refreshing the entire page. ...
|
by: Alan Z. Scharf |
last post by:
1. I have a chain of six asynch callbacks initiated by a button, and want
the page to refresh at the end of each callback to display
A. Results of a SQLServer query showing cumulative running...
|
by: Mike |
last post by:
On my web app I allow the user to enable or disable the refreshing of the
page. I notcied that if the browser window is minimized the page does not
refresh, or if it sits a long time without any...
|
by: planetthoughtful |
last post by:
Hi All,
I have a C# ASP.NET page that submits back to itself to insert details
from a form into a database table. When / if the user refreshes the
page (and gets the standard warning that POST...
|
by: Dan |
last post by:
Hi,
i'm not sure to understand the difference between refreshing the pagina by
clicking on 'refresh' in the browser and a postback.
What i think it is:
Suppose a page with a form containing a...
|
by: honey99 |
last post by:
Hi!
I have to fix a problem in JSP.Actually,i have a JSP page say Ex1.jsp.In this Ex1.jsp i have an anchor tag which links into another JSP page i.e when i click on the link another pop-up window...
|
by: Bali |
last post by:
Default.aspx is the starting page containing a control(ascx) which
has
asp:button control on it. On the button click event it has to open a
new page as a modal control. Since refreshing a page in...
|
by: Bali |
last post by:
Default.aspx is the starting page containing a control(ascx) which
has
asp:button control on it. On the button click event it has to open a
new page as a modal control. Since refreshing a page in...
|
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
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
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...
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |