|
 |
asp_web_howto thread: auto refresh for database data
Message #1 by bmcelhany@h... on Fri, 21 Sep 2001 17:07:13
|
|
Hopefully this is a relatively easy one...I have an ASP page that pulls
data in from a database based on a date that is selected in a drop-down
menu. If the user selects the current date, I need the page to
automatically refresh every 30 seconds (if they choose a date other than
the current date, this is not needed). I've set up a simple if-then-else
statement to Response.Write a meta refresh tag if the current date is
chosen. This all works fine, but here's the issue...if the user selects
the current date, every time the page refreshes I get an alert that
prompts the user to hit OK to re-send the form data. I need the page to
just refresh and not force someone to hit OK every 30 seconds. Is anyone
aware of any other alternatives? Thanks in advance!
Brian
Message #2 by "Hema R." <hema.r@s...> on Mon, 24 Sep 2001 12:06:18 +0530
|
|
Hi,
For autorefresh,if u r not posting a lot of data
to the other form..it would be a better idea to use
the form method as get than post.
Hope this helps
Regards
Hema
> -----Original Message-----
> From: bmcelhany@h... [SMTP:bmcelhany@h...]
> Sent: 21 September Friday 2001 10:37 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] auto refresh for database data
>
> Hopefully this is a relatively easy one...I have an ASP page that pulls
> data in from a database based on a date that is selected in a drop-down
> menu. If the user selects the current date, I need the page to
> automatically refresh every 30 seconds (if they choose a date other than
> the current date, this is not needed). I've set up a simple if-then-else
> statement to Response.Write a meta refresh tag if the current date is
> chosen. This all works fine, but here's the issue...if the user selects
> the current date, every time the page refreshes I get an alert that
> prompts the user to hit OK to re-send the form data. I need the page to
> just refresh and not force someone to hit OK every 30 seconds. Is anyone
> aware of any other alternatives? Thanks in advance!
>
> Brian
>
Message #3 by bmcelhany@h... on Mon, 24 Sep 2001 15:23:52
|
|
That did it! You're a lifesaver!
> Hi,
>
> For autorefresh,if u r not posting a lot of data
> to the other form..it would be a better idea to use
> the form method as get than post.
> Hope this helps
> Regards
> Hema
>
> > -----Original Message-----
> > From: bmcelhany@h... [SMTP:bmcelhany@h...]
> > Sent: 21 September Friday 2001 10:37 PM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] auto refresh for database data
> >
> > Hopefully this is a relatively easy one...I have an ASP page that
pulls
> > data in from a database based on a date that is selected in a drop-
down
> > menu. If the user selects the current date, I need the page to
> > automatically refresh every 30 seconds (if they choose a date other
than
> > the current date, this is not needed). I've set up a simple if-then-
else
> > statement to Response.Write a meta refresh tag if the current date is
> > chosen. This all works fine, but here's the issue...if the user
selects
> > the current date, every time the page refreshes I get an alert that
> > prompts the user to hit OK to re-send the form data. I need the page
to
> > just refresh and not force someone to hit OK every 30 seconds. Is
anyone
> > aware of any other alternatives? Thanks in advance!
> >
> > Brian
> >
|
|
 |