Link to home
Start Free TrialLog in
Avatar of amit1978
amit1978Flag for India

asked on

URGENT : Asp page Refresh.

Hello experts,

I have a form in ASP with following option,

[Add], [Update], [GetList], [Save]

Process 1 :  On [Add] button click, User can add the new values in input form and press [Save] button to save the record.

After this on press of [GetList] button, This will list old values which r entered before the process 1, for getting the new values i have to refresh that frame.


Question : How to get the values without refresh the page.
I have set ALL IE properties.

Amit Jain
Avatar of sajuks
sajuks

On pressing [GetList] i assume u r reading the data from the db and displaying them ?That would involve a refresh.
Or when you save the record u could store these values in hidden fields and when you press [GetList] u could
set them in ur form fields ( using javascript ) then there would be no need to refresh the page and when u click on add
u could just reset the values to blank...is this what u meant ?
Avatar of amit1978

ASKER

I have saved the records in data base on save button click, and on Get list button it will fatch all the records from database.

But thing is it will display the old screen, to see the new update or recods i have to refresh that page.

If i am getting right this is the problem of cache, which i have to reset or reload on every time page accessed(For that i have chjage the IE setting).

Amit
am a bit confused here ....
" I have saved the records in data base on save button click, and on Get list button it will fetch all the records from database.
But thing is it will display the old screen, to see the new update or recods i have to refresh that page. "

When u click on save what happens ? do you update the record and refresh the page( or redirect the page )..how
does the user know the page has been saved ?
After saving the page when u click on the getit the button will retrieve records unless it has not been updated.
Check whether u r updating the record before calling the getlist..maybe theres some loophole which u've missed in ur code
u should somehow set the cache properties for your page  as valid for only one time like that... i don't know how to do that.

Set the Expires Property of Response Object to 0.
The Expires property specifies a length of time in minutes before a response page cached on the browser expires.
The 0 value code causes the page to be refreshed (reloaded) every time it is accessed, rather than being stored in a cache.
<% Response.Expires = 0 %>
well, i am not what i am going to present is correct, but if not please ignore it

As i have read you may have used frame,
1/ form for adding
2/ listing your record

when you adding a new record you may go to one page
that page you write small javascript body onload which refresh your listing page
and after refresh it you may have redirect it to form add.


thanks!
bj mac donel
ASKER CERTIFIED SOLUTION
Avatar of TRACEYMARY
TRACEYMARY

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i want to use some paraemeter in ASP on fly like query string ,how can i .
abhishek kumar
hello sir/madam,

in ASP(VB Script) i want to use combo box and on selection of combo box item the data residing in another combo box should change tell me how?
Abhishek Kumar